随笔分类 - A 训练题
摘要:A seven segment display, or seven segment indicator, is a form of electronic display device for displaying decimal numerals that is an alternative to
阅读全文
摘要:/* 数学是硬伤。。。。。。推了半小时推出来一个错误的公式 */ #include #include #include #include #define mod 1000000007 using namespace std; int n,t; /* 推出来的错误公式。。。。。。。 f[n]=f[n-1]+(n-1)*(f[n-1]-1); */ long long a[2000500];...
阅读全文
摘要:/* 成功水过,哈哈哈,可能数据水吧 */ #include #include #include #include #include #define t_mid (l+r >> 1) #define ls (o= ql && c[ls] <= x) { ans = query(ql,qr,lson,x); if(ans == -1) ...
阅读全文
摘要:/* 以前做过一个插队的题,这个类似从后往前操作 */ #include #include #include #include #include #define N 600000 using namespace std; struct node { int x,y,z; //每一个操作,z表示这个操作是不是有效的 node(){} node(int a,...
阅读全文
摘要:B - Binary Tree Description The Old Frog King lives on the root of an infinite tree. According to the law, each node should connect to exactly two nod
阅读全文
摘要:Pagodas Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/65536 K (Java/Others)Total Submission(s): 1282 Accepted Submission(s): 902 Problem
阅读全文
摘要:Bazinga Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/65536 K (Java/Others)Total Submission(s): 3509 Accepted Submission(s): 1122 Problem
阅读全文
摘要:Four Operations Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 38 Accepted Submission(s): 18 Pro
阅读全文
摘要:Basic Data Structure Time Limit: 7000/3500 MS (Java/Others) Memory Limit: 65536/65536 K (Java/Others)Total Submission(s): 982 Accepted Submission(s):
阅读全文
摘要:H. Delete Them time limit per test 2 seconds memory limit per test 512 megabytes input standard input output standard output H. Delete Them time limit
阅读全文
摘要:J. Bottles time limit per test 2 seconds memory limit per test 512 megabytes input standard input output standard output J. Bottles time limit per tes
阅读全文
摘要:题目链接:http://vjudge.net/contest/127404#problem/A
阅读全文
摘要:Football Games Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/65536 K (Java/Others)Total Submission(s): 5055 Accepted Submission(s): 904 P
阅读全文
摘要:Problem A: 2016 Description 给出正整数 n 和 m,统计满足以下条件的正整数对 (a,b) 的数量: 1. 1≤a≤n,1≤b≤m; 2. a×b 是 2016 的倍数。 给出正整数 n 和 m,统计满足以下条件的正整数对 (a,b) 的数量: 1. 1≤a≤n,1≤b≤
阅读全文