随笔分类 - 水
51nod 1126 矩阵快速幂 水
摘要:有一个序列是这样定义的:f(1) = 1, f(2) = 1, f(n) = (A * f(n - 1) + B * f(n - 2)) mod 7. 给出A,B和N,求f(n)的值。 有一个序列是这样定义的:f(1) = 1, f(2) = 1, f(n) = (A * f(n - 1) + B
阅读全文
Codeforces Round #379 (Div. 2) A B C D 水 二分 模拟
摘要:A. Anton and Danik time limit per test 1 second memory limit per test 256 megabytes input standard input output standard output A. Anton and Danik tim
阅读全文
2016-2017 ACM-ICPC, NEERC, Southern Subregional Contest (Online Mirror, ACM-ICPC Rules, Teams Preferred) G 优先队列
摘要:G. Car Repair Shop time limit per test 2 seconds memory limit per test 512 megabytes input standard input output standard output G. Car Repair Shop ti
阅读全文
Codeforces Round #376 (Div. 2) A B C 水 模拟 并查集
摘要:A. Night at the Museum time limit per test 1 second memory limit per test 256 megabytes input standard input output standard output Grigoriy, like the
阅读全文
Codeforces Round #375 (Div. 2) A B C 水 模拟 贪心
摘要:A. The New Year: Meeting Friends time limit per test 1 second memory limit per test 256 megabytes input standard input output standard output A. The N
阅读全文
Intel Code Challenge Elimination Round (Div.1 + Div.2, combined) A B C D 水 模拟 并查集 优先队列
摘要:A. Broken Clock time limit per test 1 second memory limit per test 256 megabytes input standard input output standard output A. Broken Clock time limi
阅读全文
Codeforces Round #310 (Div. 2) A B C
摘要:A. Case of the Zeros and Ones time limit per test 1 second memory limit per test 256 megabytes input standard input output standard output A. Case of
阅读全文
Codeforces Round #374 (Div. 2) A B C D 水 模拟 dp+dfs 优先队列
摘要:A. One-dimensional Japanese Crossword time limit per test 1 second memory limit per test 256 megabytes input standard input output standard output A.
阅读全文
Codeforces Round #313 (Div. 2) A B C 思路 枚举 数学
摘要:A. Currency System in Geraldion time limit per test 2 seconds memory limit per test 256 megabytes input standard input output standard output A. Curre
阅读全文
Codeforces Round #373 (Div. 2) A B C 水 贪心 模拟(四舍五入进位)
摘要:A. Vitya in the Countryside time limit per test 1 second memory limit per test 256 megabytes input standard input output standard output A. Vitya in t
阅读全文
Codeforces Round #285 (Div. 2) A B C 模拟 stl 拓扑排序
摘要:A. Contest time limit per test 1 second memory limit per test 256 megabytes input standard input output standard output Misha and Vasya participated i
阅读全文
HDU 1081 最大子矩阵和
摘要:To The Max Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 11715 Accepted Submission(s): 5661 Pro
阅读全文
Codeforces Round #372 (Div. 2) A B C 水 暴力/模拟 构造
摘要:A. Crazy Computer time limit per test 2 seconds memory limit per test 256 megabytes input standard input output standard output A. Crazy Computer time
阅读全文
Codeforces Round #277 (Div. 2) A B C 水 模拟 贪心
摘要:A. Calculating Function time limit per test 1 second memory limit per test 256 megabytes input standard input output standard output For a positive in
阅读全文
Codeforces Round #308 (Div. 2) A B C 水 数学
摘要:A. Vanya and Table time limit per test 2 seconds memory limit per test 256 megabytes input standard input output standard output A. Vanya and Table ti
阅读全文
Codeforces Round #370 (Div. 2) A B C 水 模拟 贪心
摘要:A. Memory and Crow time limit per test 2 seconds memory limit per test 256 megabytes input standard input output standard output There are n integers
阅读全文
Codeforces Round #280 (Div. 2) A B C 暴力 水 贪心
摘要:A. Vanya and Cubes time limit per test 1 second memory limit per test 256 megabytes input standard input output standard output A. Vanya and Cubes tim
阅读全文
Codeforces Round #260 (Div. 2) A B C 水 找规律(大数对小数取模) dp
摘要:A. Laptops time limit per test 1 second memory limit per test 256 megabytes input standard input output standard output One day Dima and Alex had an a
阅读全文
Codeforces Round #369 (Div. 2) A B 暴力 模拟
摘要:A. Bus to Udayland time limit per test 2 seconds memory limit per test 256 megabytes input standard input output standard output A. Bus to Udayland ti
阅读全文
Codeforces Round #368 (Div. 2)A B C 水 图 数学
摘要:A. Brain's Photos time limit per test 2 seconds memory limit per test 256 megabytes input standard input output standard output A. Brain's Photos time
阅读全文
浙公网安备 33010602011771号