水--------------------
文章平均质量分 65
superkunn
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
cf 902 B. Coloring a Tree
B. Coloring a Treetime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputYou are given a rooted tree with n vertices. The vertices are numbered from 1 to ...原创 2018-04-23 16:50:30 · 273 阅读 · 0 评论 -
sgu 404. Fortune-telling with camomile 循环取余
404. Fortune-telling with camomileTime limit per test: 0.25 second(s)Memory limit: 65536 kilobytesinput: standardoutput: standardMasha loves Petya. The following question gives her no rest: does Petya...原创 2018-04-28 09:49:12 · 214 阅读 · 0 评论 -
sgu 107. 987654321 problem 找规律
107. 987654321 problemtime limit per test: 0.25 sec. memory limit per test: 4096 KBFor given number N you must output amount of N-digit numbers, such, that last digits of their square is equal to 9876...原创 2018-04-28 12:37:43 · 333 阅读 · 0 评论 -
sgu 105. Div 3 找规律
105. Div 3time limit per test: 0.25 sec. memory limit per test: 4096 KBThere is sequence 1, 12, 123, 1234, ..., 12345678910, ... . Given first N elements of that sequence. You must determine amount of...原创 2018-04-28 15:14:33 · 224 阅读 · 0 评论 -
sgu 358. Median of Medians 中位数
358. Median of MediansTime limit per test: 0.25 second(s)Memory limit: 65536 kilobytesinput: standardoutput: standardVasya learned definition of median of three numbers. He says, "Median of three numb...原创 2018-04-28 15:25:58 · 586 阅读 · 0 评论 -
sgu 231. Prime Sum 素数筛选
231. Prime Sumtime limit per test: 0.25 sec.memory limit per test: 4096 KBinput: standardoutput: standardFind all pairs of prime numbers (A, B) such that A<=B and their sum is also a prime number a...原创 2018-04-29 16:04:25 · 251 阅读 · 0 评论 -
sgu 538. Emoticons 水
538. EmoticonsTime limit per test: 1 second(s)Memory limit: 262144 kilobytesinput: standardoutput: standardA berland national nanochat Bertalk should always stay up-to-date. That's why emoticons highl...原创 2018-05-07 17:44:31 · 231 阅读 · 0 评论 -
sgu 347. Join the Strings 字符串比较
347. Join the StringsTime limit per test: 0.25 second(s)Memory limit: 65536 kilobytesinput: standardoutput: standardHis Royal Highness King of Berland Berl XV was a very wise man and had a very accomp...原创 2018-04-30 01:55:35 · 215 阅读 · 0 评论 -
sgu 443. Everlasting...? 素数筛
443. Everlasting...?Time limit per test: 0.5 second(s)Memory limit: 262144 kilobytesinput: standardoutput: standardEverlasting Sa-Ga, a new, hot and very popular role-playing game, is out on October 1...原创 2018-05-22 08:47:54 · 287 阅读 · 0 评论 -
sgu 405. Totalizator 简单模拟
405. TotalizatorTime limit per test: 0.25 second(s)Memory limit: 65536 kilobytesinput: standardoutput: standardSome time ago Vasya was cleaning up the garret. After the hours of hard work he suddenly ...原创 2018-05-22 09:51:01 · 209 阅读 · 0 评论 -
sgu 127. Telephone directory
127. Telephone directorytime limit per test: 0.25 sec. memory limit per test: 4096 KBCIA has decided to create a special telephone directory for its agents. The first 2 pages of the directory contain ...原创 2018-05-22 10:51:02 · 235 阅读 · 0 评论 -
sgu 499. Greatest Greatest Common Divisor 因数打表
499. Greatest Greatest Common DivisorTime limit per test: 0.5 second(s)Memory limit: 262144 kilobytesinput: standardoutput: standardAndrew has just made a breakthrough in sociology: he realized how to...原创 2018-04-27 23:06:21 · 306 阅读 · 0 评论 -
sgu 486. "Bulls and Cows"
486. "Bulls and Cows"Time limit per test: 0.25 second(s)Memory limit: 262144 kilobytesinput: standardoutput: standardYou probably know the game "bulls and cows". Just in case, we explain the rules. Th...原创 2018-04-27 20:39:29 · 167 阅读 · 0 评论 -
sgu 519. 3D City Model
519. 3D City ModelTime limit per test: 0.25 second(s)Memory limit: 262144 kilobytesinput: standardoutput: standardA city is built on the top of a rectangular n x m grid where all the grid cells are eq...原创 2018-04-30 16:46:05 · 189 阅读 · 0 评论 -
sgu 184. Patties 基础
184. Pattiestime limit per test: 0.25 sec.memory limit per test: 4096 KBinput: standard inputoutput: standard outputPetya is well-known with his famous cabbage patties. Petya's birthday will come very...原创 2018-04-30 17:17:41 · 247 阅读 · 0 评论 -
sgu 100 A+B
100. A+Btime limit per test: 0.25 sec. memory limit per test: 65536 KBRead integers A and B from input file and write their sum in output file.InputInput file contains A and B (0<A,B<10001).Outp...原创 2018-04-24 16:27:28 · 168 阅读 · 0 评论 -
sgu 113. Nearly prime numbers 素数
113. Nearly prime numberstime limit per test: 0.25 sec. memory limit per test: 4096 KBNearly prime number is an integer positive number for which it is possible to find such primes P1 and P2 that give...原创 2018-05-02 20:45:34 · 180 阅读 · 0 评论 -
sgu 398. Friends of Friends 集合set
398. Friends of FriendsTime limit per test: 0.25 second(s)Memory limit: 65536 kilobytesinput: standardoutput: standardSocial networks are very popular now. They use different types of relationships to...原创 2018-05-03 17:15:12 · 307 阅读 · 0 评论 -
sgu 123. The sum 递推
123. The sumtime limit per test: 0.25 sec. memory limit per test: 4096 KBThe Fibonacci sequence of numbers is known: F1 = 1; F2 = 1; Fn+1 = Fn + Fn-1, for n>1. You have to find S - the sum of the f...原创 2018-04-25 20:52:27 · 163 阅读 · 0 评论 -
sgu 403. Scientific Problem
403. Scientific ProblemTime limit per test: 0.25 second(s)Memory limit: 65536 kilobytesinput: standardoutput: standardOnce upon a time Professor Idioticideasinventor was travelling by train. Watching ...原创 2018-04-25 21:22:03 · 294 阅读 · 0 评论 -
sgu 460. Plural Form of Nouns
460. Plural Form of NounsTime limit per test: 0.25 second(s)Memory limit: 65536 kilobytesinput: standardoutput: standardIn the English language, nouns are inflected by grammatical number — that is sin...原创 2018-04-25 21:37:26 · 497 阅读 · 0 评论 -
sgu 115. Calendar 水
115. Calendartime limit per test: 0.25 sec. memory limit per test: 4096 KBFirst year of new millenium is gone away. In commemoration of it write a program that finds the name of the day of the week fo...原创 2018-05-03 20:53:14 · 151 阅读 · 0 评论 -
sgu 135. Drawing Lines 找规律
135. Drawing Linestime limit per test: 0.25 sec. memory limit per test: 4096 KBLittle Johnny likes to draw a lot. A few days ago he painted lots of straight lines on his sheet of paper. Then he counte...原创 2018-05-04 15:59:10 · 174 阅读 · 0 评论 -
sgu 406. Goggle
406. GoggleTime limit per test: 0.25 second(s)Memory limit: 65536 kilobytesinput: standardoutput: standardEverybody knows search engine Goggle. But only advanced users know that it is possible to sear...原创 2018-05-27 13:56:17 · 243 阅读 · 0 评论
分享