codeforces
文章平均质量分 72
小自洽
孤独患者
展开
-
B. Treasure Hunt
B. Treasure Hunt time limit per test1 second memory limit per test256 megabytes inputstandard input outputstandard output After the big birthday party, Katie still wanted Shiro to have some more ...原创 2018-06-02 21:15:12 · 417 阅读 · 0 评论 -
A. Olympiad
A. Olympiad time limit per test1 second memory limit per test256 megabytes inputstandard input outputstandard output The recent All-Berland Olympiad in Informatics featured n participants with ea...原创 2018-05-24 17:33:19 · 196 阅读 · 0 评论 -
A. Remove Duplicates
A. Remove Duplicates time limit per test1 second memory limit per test256 megabytes inputstandard input outputstandard output Petya has an array a consisting of n integers. He wants to re...原创 2018-06-01 09:12:36 · 226 阅读 · 0 评论 -
B. File Name(连续字符串的删除,连续出现几个删一个)
B. File Name time limit per test1 second memory limit per test256 megabytes inputstandard input outputstandard output You can not just take the file and send it. When Polycarp trying to send a fi...原创 2018-06-01 09:36:56 · 609 阅读 · 0 评论 -
C. Letters
C. Letters time limit per test4 seconds memory limit per test256 megabytes inputstandard input outputstandard output There are n dormitories in Berland State University, they are numbered wit...原创 2018-06-01 20:12:42 · 1264 阅读 · 0 评论 -
F. Mentors
F. Mentors time limit per test3 seconds memory limit per test256 megabytes inputstandard input outputstandard output In BerSoft n programmers work, the programmer i is characterized by a ...原创 2018-06-01 21:55:11 · 583 阅读 · 0 评论 -
E. Bus Video System
E. Bus Video System time limit per test1 second memory limit per test256 megabytes inputstandard input outputstandard output The busses in Berland are equipped with a video surveillance system. T...原创 2018-06-02 14:04:53 · 3548 阅读 · 0 评论 -
A. Pizza, Pizza, Pizza!!!
A. Pizza, Pizza, Pizza!!! time limit per test1 second memory limit per test128 megabytes inputstandard input outputstandard output Katie, Kuro and Shiro are best friends. They have known each oth...原创 2018-06-02 16:33:06 · 697 阅读 · 0 评论 -
三元运算
Complete the ternary calculation.Input There are multiple test cases. The first line of input contains an integer T indicating the number of test cases. For each test case:There is a string in th...原创 2018-07-28 19:57:55 · 334 阅读 · 0 评论 -
输入一个数字,问从1开始到这个数字总共写了多少个数字
B. Vanya and Books time limit per test1 second memory limit per test256 megabytes inputstandard input outputstandard output Vanya got an important task — he should enumerate books in the library ...原创 2018-07-26 14:18:06 · 554 阅读 · 0 评论 -
进制转换
C. Vanya and Scales time limit per test1 second memory limit per test256 megabytes inputstandard input outputstandard output Vanya has a scales for weighing loads and weights of masses w0, w1, w2...原创 2018-07-26 16:26:28 · 176 阅读 · 0 评论 -
枚举,找限制条件
B. Planning The Expedition time limit per test1 second memory limit per test256 megabytes inputstandard input outputstandard output Natasha is planning an expedition to Mars for n people. One...原创 2018-07-27 10:49:40 · 430 阅读 · 0 评论 -
贪心
A. Stages time limit per test1 second memory limit per test256 megabytes inputstandard input outputstandard output Natasha is going to fly to Mars. She needs to build a rocket, which consists of ...原创 2018-07-27 18:59:34 · 308 阅读 · 0 评论 -
B. Badge(模拟题,输出第二个被罚的人)
B. Badge time limit per test1 second memory limit per test256 megabytes inputstandard input outputstandard output In Summer Informatics School, if a student doesn’t behave well, teachers make a h...原创 2018-08-22 07:10:28 · 725 阅读 · 0 评论 -
B.Numbers on the Chessboard(矩阵中放数)
题目链接 题意: 题意:在矩阵里面放数,先把横纵坐标之和是偶数的放满,从左往右,从上往下,然后从最小的奇数(横纵坐标之和)开始继续往后放数;直到把n*n这些数放完#include<stdio.h>#include<stdlib.h>#include<string.h>int main(){ long long int n,m; ...原创 2018-08-19 19:22:18 · 448 阅读 · 0 评论 -
C. Minimum Value Rectangle(基本不等式等式成立的条件)
题目链接 C. Minimum Value Rectangle time limit per test2 seconds memory limit per test256 megabytes inputstandard input outputstandard output You have n sticks of the given lengths.Your task i...原创 2018-08-19 20:15:35 · 739 阅读 · 0 评论 -
A. Palindromic Twist(字符串变化+回文的判断)
题目链接 A. Palindromic Twist time limit per test2 seconds memory limit per test256 megabytes inputstandard input outputstandard output You are given a string s consisting of n lowercase Lat...原创 2018-08-19 20:25:09 · 366 阅读 · 0 评论 -
A. Row
A. Row time limit per test1 second memory limit per test256 megabytes inputstandard input outputstandard output You’re given a row with n chairs. We call a seating of people “maximal” if the ...原创 2018-05-29 20:05:58 · 620 阅读 · 0 评论 -
A. Left-handers, Right-handers and Ambidexters
A. Left-handers, Right-handers and Ambidexters time limit per test1 second memory limit per test256 megabytes inputstandard input outputstandard output You are at a water bowling training. There ...原创 2018-05-24 16:46:13 · 265 阅读 · 0 评论 -
A. Mahmoud and Ehab and the even-odd game
A. Mahmoud and Ehab and the even-odd game time limit per test1 second memory limit per test256 megabytes inputstandard input outputstandard output Mahmoud and Ehab play a game called the even-odd...原创 2018-05-24 16:25:36 · 251 阅读 · 0 评论 -
A. Chess Placing
A. Chess Placing time limit per test1 second memory limit per test256 megabytes inputstandard input outputstandard output You are given a chessboard of size 1 × n. It is guaranteed that n is even...原创 2018-06-02 22:09:56 · 314 阅读 · 0 评论 -
B. Switches and Lamps
B. Switches and Lamps time limit per test3 seconds memory limit per test256 megabytes inputstandard input outputstandard output You are given n switches and m lamps. The i-th switch turns on some...原创 2018-06-03 10:21:05 · 323 阅读 · 0 评论 -
A. Links and Pearls
A. Links and Pearls time limit per test1 second memory limit per test256 megabytes inputstandard input outputstandard output A necklace can be described as a string of links (‘-‘) and pearls (‘o’...原创 2018-06-03 11:00:40 · 266 阅读 · 0 评论 -
B. Marlin(对称,设置障碍)
B. Marlin time limit per test1 second memory limit per test256 megabytes inputstandard input outputstandard output The city of Fishtopia can be imagined as a grid of 4 rows and an odd number ...原创 2018-06-03 19:21:45 · 317 阅读 · 0 评论 -
E
Sagheer is walking in the street when he comes to an intersection of two roads. Each road can be represented as two parts where each part has 3 lanes getting into the intersection (one for each direct...原创 2018-05-14 10:57:56 · 126 阅读 · 0 评论 -
F
Mike has a string s consisting of only lowercase English letters. He wants to change exactly one character from the string so that the resulting one is a palindrome.A palindrome is a string that rea...原创 2018-05-13 12:41:12 · 123 阅读 · 0 评论 -
C
Top-model Izabella participates in the competition. She wants to impress judges and show her mathematical skills.Her problem is following: for given string, consisting of only 0 and 1, tell if it’s ...原创 2018-05-13 12:17:54 · 304 阅读 · 0 评论 -
B
You have a fraction . You need to find the first occurrence of digit c into decimal notation of the fraction after decimal point.Input The first contains three single positive integers a, b, c (1 ≤...原创 2018-05-13 12:01:08 · 216 阅读 · 1 评论 -
A
The preferred way to generate user login in Polygon is to concatenate a prefix of the user’s first name and a prefix of their last name, in that order. Each prefix must be non-empty, and any of the pr...原创 2018-05-13 10:59:49 · 123 阅读 · 0 评论 -
A. Game(sort排序)
A. Game time limit per test2 seconds memory limit per test256 megabytes inputstandard input outputstandard output Two players play a game.Initially there are n integers a 1 , a 2 , ...原创 2018-06-03 19:38:27 · 285 阅读 · 0 评论 -
B. Arpa’s obvious problem and Mehrdad’s terrible solution
B. Arpa’s obvious problem and Mehrdad’s terrible solution time limit per test1 second memory limit per test256 megabytes inputstandard input outputstandard output There are some beautiful girls i...原创 2018-05-28 19:52:19 · 179 阅读 · 0 评论 -
A. Fafa and his Company
A. Fafa and his Company time limit per test1 second memory limit per test256 megabytes inputstandard input outputstandard output Fafa owns a company that works on huge projects. There are n emplo...原创 2018-05-28 20:43:06 · 206 阅读 · 0 评论 -
B. Intercepted Message
B. Intercepted Message time limit per test1 second memory limit per test512 megabytes inputstandard input outputstandard output Hacker Zhorik wants to decipher two secret messages he intercepted ...原创 2018-05-28 23:15:54 · 293 阅读 · 0 评论 -
A. Wrong Subtraction(模拟题,取余10获得最后一位)
A. Wrong Subtraction time limit per test1 second memory limit per test256 megabytes inputstandard input outputstandard output Little girl Tanya is learning how to decrease a number by one, but sh...原创 2018-06-04 23:19:07 · 281 阅读 · 0 评论 -
B. Two-gram(string的使用以及字符串的匹配)
B. Two-gram time limit per test1 second memory limit per test256 megabytes inputstandard input outputstandard output Two-gram is an ordered pair (i.e. string of length two) of capital Latin lette...原创 2018-06-05 00:13:41 · 582 阅读 · 0 评论 -
C. Songs Compression(贪心)
C. Songs Compression time limit per test1 second memory limit per test256 megabytes inputstandard input outputstandard output Ivan has n songs on his phone. The size of the i -th song is ...原创 2018-08-23 07:09:47 · 298 阅读 · 0 评论