
2017多校
threeh20
暑假有半个月整个人像死了一样,所以更加明白生命的可贵
展开
-
2017 多校2 1001 Is Derek lying?
Is Derek lying?Time Limit: 3000/1000 MS (Java/Others) Memory Limit: 65536/65536 K (Java/Others)Total Submission(s): 3598 Accepted Submission(s): 999Problem DescriptionDerek and Alf原创 2017-07-29 20:34:16 · 307 阅读 · 0 评论 -
2017多校5 1011 Rikka with Competition
http://acm.hdu.edu.cn/showproblem.php?pid=6095原创 2017-08-09 20:12:30 · 225 阅读 · 0 评论 -
2017 多校3 1008 RXD and math
题目 http://acm.hdu.edu.cn/showproblem.php?pid=6063#includeusing namespace std;const long long int MOD=7+1e9;long long int poww(long long int n,long long int m){ long long int an原创 2017-08-02 20:23:52 · 213 阅读 · 0 评论 -
2017多校3 1011 RXD's date
题目http://acm.hdu.edu.cn/showproblem.php?pid=6066#includeusing namespace std;int main(){ int d; while(cin>>d) { int ans=0; int i;原创 2017-08-02 20:33:42 · 203 阅读 · 0 评论 -
多校1 A Add More Zero
Add More ZeroTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 131072/131072 K (Java/Others)Total Submission(s): 0 Accepted Submission(s): 0Problem DescriptionThere is a youngster原创 2017-07-25 22:28:50 · 351 阅读 · 0 评论 -
多校1 K KazaQ's Socks
KazaQ's SocksTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 131072/131072 K (Java/Others)Total Submission(s): 0 Accepted Submission(s): 0Problem DescriptionKazaQ wears socks ev原创 2017-07-25 22:32:19 · 354 阅读 · 0 评论 -
多校1 B Balala Power!
Balala Power!Time Limit: 4000/2000 MS (Java/Others) Memory Limit: 131072/131072 K (Java/Others)Total Submission(s): 3639 Accepted Submission(s): 871Problem DescriptionTalente原创 2017-07-26 19:11:54 · 397 阅读 · 0 评论 -
2017 多校3 1003 Kanade's sum
http://acm.hdu.edu.cn/showproblem.php?pid=6058#includeusing namespace std;int a[666666];int rig[666666];int lef[666666];int main(){ int t; cin>>t; while(t--) {原创 2017-08-05 20:51:14 · 275 阅读 · 0 评论 -
2017 多校4 1003 Counting Divisors
http://acm.hdu.edu.cn/showproblem.php?pid=6069#includeusing namespace std;const long long int MOD=998244353;long long int pr[1111111];bool vis[1111111];long long int num[111原创 2017-08-05 21:03:20 · 361 阅读 · 0 评论 -
2017 多校4 1009 Questionnaire
http://acm.hdu.edu.cn/contests/contest_showproblem.php?cid=762&pid=1009#include#include#include#includeusing namespace std;long long int a;int main(){ int T,n; int res=0;原创 2017-08-05 21:10:20 · 247 阅读 · 0 评论 -
2017多校5 1008 Rikka with Subset
http://acm.hdu.edu.cn/showproblem.php?pid=6092#include#includeusing namespace std;#define ma(a) memset((a),0,sizeof((a)))int dp[11111],num[11111],a[11111],ans[11111];int main(){原创 2017-08-09 20:05:30 · 217 阅读 · 0 评论 -
2017多校5 1006 Rikka with Graph
http://acm.hdu.edu.cn/showproblem.php?pid=6090#includeusing namespace std;long long n,m;int main(){ long long t; cin>>t; while(t--) { cin>>n>>m; if原创 2017-08-09 20:01:19 · 199 阅读 · 0 评论 -
2017多校3 1005 RXD and dividing
http://acm.hdu.edu.cn/showproblem.php?pid=6060#include#include#includeusing namespace std;const long long int N=10000007;struct node{ int en; int v; int next;}e[N原创 2017-08-09 19:52:08 · 222 阅读 · 0 评论 -
2017多校2 1011 Regular polygon
Regular polygonTime Limit: 3000/1000 MS (Java/Others) Memory Limit: 65536/65536 K (Java/Others)Total Submission(s): 2924 Accepted Submission(s): 685Problem DescriptionOn a two-dimens原创 2017-07-29 20:40:06 · 225 阅读 · 0 评论 -
2017多校2 1003Maximum Sequence
Maximum SequenceTime Limit: 4000/2000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 1887 Accepted Submission(s): 671Problem DescriptionSteph is extre原创 2017-07-29 20:44:00 · 213 阅读 · 0 评论 -
2017多校1 1006Function
FunctionTime Limit: 4000/2000 MS (Java/Others) Memory Limit: 131072/131072 K (Java/Others)Total Submission(s): 1530 Accepted Submission(s): 720Problem DescriptionYou are given a perm原创 2017-07-29 20:48:32 · 237 阅读 · 0 评论 -
2017多校2 1006 Funny Function
Funny FunctionTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 1082 Accepted Submission(s): 513Problem DescriptionFunction Fx,ysat原创 2017-07-29 20:56:57 · 232 阅读 · 0 评论 -
2017多校2 1004 Puzzle
PuzzleTime Limit: 4000/2000 MS (Java/Others) Memory Limit: 262144/262144 K (Java/Others)Total Submission(s): 319 Accepted Submission(s): 177Problem DescriptionA Jigsaw puzzle contain原创 2017-07-29 21:08:27 · 381 阅读 · 0 评论 -
2017多校6 1003 Inversion
http://acm.hdu.edu.cn/showproblem.php?pid=6098给出一组数列,共有n个数,输出n-1个数,第i个输出的是所给数列中下标不是i的整除数中的最大的数。模拟过程必定超时。因为是除去所有的整除数,意味着第i个数本身是不看的,那其实就很简单了,只要对整个数列倒序排序,然后每次输出的时候从大的开始遍历,判断是否能整除即可。原创 2017-08-16 19:02:35 · 176 阅读 · 0 评论 -
2017多校6 1011 Classes
http://acm.hdu.edu.cn/showproblem.php?pid=6106共有3个辅导班,给出若干班级中学生报A,B,C,AB,AC,BC,ABC的情况,求班级人数最多有多少人,但题目还说存在错误信息,但对于错误信息的处理不是说的很明白,看样例介绍对于错误信息是直接忽视的。至于如何去判断给的信息是否为正确信息呢,可以运用VN图的知识来写。一个班级的人数公式是原创 2017-08-16 19:04:18 · 205 阅读 · 0 评论 -
2017 多校7 1005 Euler theorem
http://acm.hdu.edu.cn/showproblem.php?pid=6124找出一个数对所有的正整数取余的不同结果的数量, 是有规律的,把前10个写出来就可以看出来了偶数:n/2+1 奇数:(n+1)/2+1;#includeusing namespace std;int main(){ int t;原创 2017-08-16 19:10:35 · 219 阅读 · 0 评论 -
2017 多校7 1011 Kolakoski
http://acm.hdu.edu.cn/showproblem.php?pid=6130给出一个Kolakoski 数列,该数列中只含有1和2,且定义连续相同的数字为一组数,满足第n项的值等于第n组中数字的个数其实是道模拟题,根据题意打个10000000的表就好。#includeusing namespace std;int a[1原创 2017-08-16 19:14:10 · 341 阅读 · 0 评论 -
2017多校4 1011 Time To Get Up
http://acm.hdu.edu.cn/showproblem.php?pid=6077#includeusing namespace std;char a[44][44];int find(int x,int y){ if(a[x][y+1]=='X'&&a[x+1][y]=='X'&&a[x+1][y+3]=='X'&&a[x+3][原创 2017-08-05 21:15:37 · 218 阅读 · 0 评论