摘要:
B. Cthulhu time limit per test 2 seconds memory limit per test 256 megabytes input standard input output standard output ...Once upon a... 阅读全文
摘要:
1770 数数字 基准时间限制:1 秒 空间限制:262144 KB 分值: 20 难度:3级算法题 收藏 关注 统计一下 aaa ⋯ aaan个a × b 的结果里面有多少个数字d,a,b,d均为一位数。 样例解释: 33333... 阅读全文
摘要:
C. Board Game time limit per test 1 second memory limit per test 256 megabytes input standard input output standard output Polycar... 阅读全文
摘要:
10471: 数列游戏 I Time Limit: 2 Sec Memory Limit: 128 MB Submit: 63 Solved: 13 [Submit][Status][Web Board] Description 给定一个长度为N的序列,首先进行A次操作,每次操... 阅读全文
摘要:
1190. [福州培训2010] 最大和 ★☆ 输入文件:maxsum.in 输出文件:maxsum.out 简单对比 时间限制:1 s 内存限制:128 MB 【题目描述】 N个数围成一圈,要求从中选择若干个连续的数(注意每个数最多只能选一次)加起来,问能形成的最大... 阅读全文
摘要:
Oulipo Time Limit: 1000MS Memory Limit: 65536K Total Submissions: 39112 Accepted: 15748 Description The French author Georges Pere... 阅读全文
摘要:
L2-008. 最长对称子串 时间限制 100 ms 内存限制 65536 kB 代码长度限制 8000 B 判题程序 Standard 作者 陈越 对给定的字符串,本题要求你输出最长对称子串的长度。例如,给定"Is PAT&TAP sym... 阅读全文
摘要:
1169: Krito的讨伐 Time Limit: 1 Sec Memory Limit: 128 MB Submit: 628 Solved: 105 Description Krito终于干掉了99层的boss,来到了第100层。第100层可以表示成一颗树,这棵树有n个节... 阅读全文
摘要:
1141: 求互质对数 Time Limit: 1 Sec Memory Limit: 128 MB Submit: 2239 Solved: 358 Description 1到n中,任意选择两个数,使其互质,问总共有多少种选择方法,注意(1,2)和(2,1)是同一种方案 ... 阅读全文
摘要:
题意:给定N(1 #include#includeusing namespace std;const long long maxn=4100000;long long phi[maxn*2];long long s[maxn],f[maxn];void phi_table(int n){ ... 阅读全文