Try Again

随笔分类 -  数据结构:数论

摘要:小K手中有n张牌,每张牌上有一个一位数的数,这个字数不是0就是5。小K从这些牌在抽出任意张(不能抽0张),排成一行这样就组成了一个数。使得这个数尽可能大,而且可以被90整除。 注意: 1.这个数没有前导0, 2.小K不需要使用所有的牌。 Input Output Input示例 Output示例 阅读全文
posted @ 2018-04-30 21:33 十年换你一句好久不见 阅读(228) 评论(0) 推荐(0)
摘要:1001 Chess Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 177 Accepted Submission(s): 133 Proble 阅读全文
posted @ 2017-08-14 06:10 十年换你一句好久不见 阅读(273) 评论(0) 推荐(0)
摘要:1001 度度熊保护村庄 Accepts: 26 Submissions: 703 Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others) 1001 度度熊保护村庄 Accepts: 26 Su 阅读全文
posted @ 2017-08-06 16:04 十年换你一句好久不见 阅读(542) 评论(0) 推荐(0)
摘要:https://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&page=show_problem&problem=2421 gcd(x,4) f(4)=3,pos[4]=3=1*3; gcd(2x,8) f[4]=3],p 阅读全文
posted @ 2017-07-26 10:54 十年换你一句好久不见 阅读(195) 评论(0) 推荐(0)
摘要:http://poj.org/problem?id=2282 The Counting Problem Time Limit: 3000MS Memory Limit: 65536K Total Submissions: 4612 Accepted: 2366 Description Given t 阅读全文
posted @ 2017-07-25 19:09 十年换你一句好久不见 阅读(265) 评论(0) 推荐(0)
摘要:题目: B - Pairs Forming LCM Time Limit:2000MS Memory Limit:32768KB Description Find the result of the following code: long long pairsFormLCM( int n ) {l 阅读全文
posted @ 2017-07-25 18:23 十年换你一句好久不见 阅读(425) 评论(1) 推荐(0)
摘要:Prime Distance Time Limit: 1000MS Memory Limit: 65536K Total Submissions: 18618 Accepted: 4984 Description The branch of mathematics called number the 阅读全文
posted @ 2017-07-24 20:14 十年换你一句好久不见 阅读(135) 评论(0) 推荐(0)
摘要:http://codeforces.com/gym/100952/problem/D D. Time to go back time limit per test 1 second memory limit per test 256 megabytes input standard input ou 阅读全文
posted @ 2017-07-18 10:46 十年换你一句好久不见 阅读(310) 评论(0) 推荐(1)
摘要:1010 - Alarm Time Limit:1s Memory Limit:128MByte 1010 - Alarm Time Limit:1s Memory Limit:128MByte Time Limit:1s Memory Limit:128MByte DESCRIPTION Give 阅读全文
posted @ 2017-07-15 11:54 十年换你一句好久不见 阅读(234) 评论(0) 推荐(0)
摘要:It has been said that a watch that is stopped keeps better time than one that loses 1 second per day. The one that is stopped reads the correct time t 阅读全文
posted @ 2017-07-03 20:05 十年换你一句好久不见 阅读(167) 评论(0) 推荐(0)
摘要:A palindrome is a word, number, or phrase that reads the same forwards as backwards. For example, the name “anna” is a palindrome. Numbers can also be 阅读全文
posted @ 2017-07-03 18:26 十年换你一句好久不见 阅读(391) 评论(0) 推荐(0)