摘要:
原题链接:http://codeforces.com/gym/100523/attachments/download/2798/20142015-ct-s02e07-codeforces-trainings-season-2-episode-7-en.pdf题意给你一堆三维点,问你他们是否共面题解模... 阅读全文
摘要:
什么是输入挂?众所周知scanf比cin快的多,那么有没有比scanf更快的东西呢?答案就是输入挂,输入挂利用了告诉读取的函数getchar(),然后再人工处理成整数或浮点,比使用scanf快太多。什么时候用输入挂?当输入规模达到1×10^6次方的时候,就需要输入挂,否则很有可能超时。代码代码不是我... 阅读全文
摘要:
突然想写个系列,算是总结总结集训中遇到的各种黑科技吧,这是目录ACM的奇计淫巧_输入挂ACM的奇计淫巧_扩栈C++/G++ACM的奇计淫巧_bitset优化 阅读全文
摘要:
原题链接:http://acm.timus.ru/problem.aspx?space=1&num=17801780. Gray CodeTime limit: 0.5 secondMemory limit: 64 MBDenis, Vanya and Fedya gathered at their... 阅读全文
摘要:
题目链接:http://acm.timus.ru/problem.aspx?space=1&num=17741774. Barber of the Army of MagesTime limit: 0.5 secondMemory limit: 64 MBPetr, elected as a war... 阅读全文
摘要:
G. Suggested Friendstime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputPolycarpus works as a progra... 阅读全文
摘要:
原题链接:http://acm.hdu.edu.cn/showproblem.php?pid=4587TWO NODESTime Limit: 24000/12000 MS (Java/Others)Memory Limit: 65535/32768 K (Java/Others)Total Sub... 阅读全文
摘要:
C++#pragma comment(linker, "/STACK:102400000,102400000")G++ int size = 256 << 20; // 256MB char *p = (char*)malloc(size) + size; __asm__("m... 阅读全文
摘要:
How far away ?Time Limit: 2000/1000 MS (Java/Others)Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 8712Accepted Submission(s): 3047Prob... 阅读全文
摘要:
NetworkTime Limit: 10000/5000 MS (Java/Others)Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 1014Accepted Submission(s): 206Problem Des... 阅读全文