摘要:
D. Merge Equals time limit per test 2 seconds memory limit per test 256 megabytes input standard input output standard output D. Merge Equals time lim 阅读全文
摘要:
纯粹的EXGCD,借机复习一波扩欧; 1 void exgcd(ll a, ll b, ll &d, ll &x, ll &y) { 2 if(!b){ 3 x = 1; 4 y = 0; 5 d = a; 6 } 7 else { 8 gcd(b, a%b, d, y, x); 9 y -= x 阅读全文
摘要:
Showstopper Description Data-mining huge data sets can be a painful and long lasting process if we are not aware of tiny patterns existing within thos 阅读全文
摘要:
E. Tufurama One day Polycarp decided to rewatch his absolute favourite episode of well-known TV series "Tufurama". He was pretty surprised when he got 阅读全文
摘要:
P2567 [SCOI2010]幸运数字 题目描述 在中国,很多人都把6和8视为是幸运数字!lxhgww也这样认为,于是他定义自己的“幸运号码”是十进制表示中只包含数字6和8的那些号码,比如68,666,888都是“幸运号码”!但是这种“幸运号码”总是太少了,比如在[1,100]的区间内就只有6个( 阅读全文
摘要:
C. A Twisty Movement time limit per test 1 second memory limit per test 256 megabytes input standard input output standard output C. A Twisty Movement 阅读全文
摘要:
C. Journey time limit per test 2 seconds memory limit per test 256 megabytes input standard input output standard output C. Journey time limit per tes 阅读全文
摘要:
由于java里面有一些东西比c/c++方便(尤其是大数据高精度问题,备受广大ACMer欢迎),所以就可以灵活运用这三种来实现编程,下面是我自己在各种大牛那里总结了一些 这里指的java速成,只限于java语法,包括输入输出,运算处理,字符串和高精度的处理,进制之间的转换等,能解决OJ上的一些高精度题 阅读全文
摘要:
Triangle Description Given n distinct points on a plane, your task is to find the triangle that have the maximum area, whose vertices are from the giv 阅读全文
摘要:
Bridge Across Islands Time Limit: 1000MS Memory Limit: 65536K Total Submissions: 11539 Accepted: 3395 Special Judge Description Thousands of thousands 阅读全文