2018年7月24日

逆元

摘要: 1 https://www.cnblogs.com/linyujun/p/5194184.html a和p互质,a才有关于p的逆元 typedef long long LL;void ex_gcd(LL a, LL b, LL &x, LL &y, LL &d){ if (!b) {d = a, x 阅读全文

posted @ 2018-07-24 15:27 cltt 阅读(197) 评论(0) 推荐(0)

2018年7月22日

有点贪心

摘要: You are given nn strings str1,str2,…,strnstr1,str2,…,strn, each consisting of ( and ). The objective is to determine whether it is possible to permute 阅读全文

posted @ 2018-07-22 15:12 cltt 阅读(191) 评论(0) 推荐(0)

2018年7月20日

线段树

摘要: YJJ's Salesman hdu 6447 Time Limit: 4000/2000 MS (Java/Others) Memory Limit: 65536/65536 K (Java/Others)Total Submission(s): 1212 Accepted Submission( 阅读全文

posted @ 2018-07-20 22:16 cltt 阅读(183) 评论(0) 推荐(0)

%%%%%%%%

摘要: 1 1 //强制类型转换 2 2 // https://blog.csdn.net/chaipp0607/article/details/54834954 3 4 double x; 5 int y1,y2; 6 scanf("%lf",&x); 7 y1=int(x); 8 y2=int(round(x)); 9 pri... 阅读全文

posted @ 2018-07-20 15:02 cltt 阅读(1293) 评论(0) 推荐(0)

公式/定理

摘要: 1 // 2018年全国多校算法寒假训练营练习比赛(第三场) 2 // 不凡的夫夫 3 #include <iostream> 4 #include <cstdio> 5 #include <cstring> 6 #include <string> 7 #include <utility> 8 #i 阅读全文

posted @ 2018-07-20 11:38 cltt 阅读(291) 评论(0) 推荐(0)

2018年7月19日

German Collegiate Programming Contest 2018​

摘要: 1 // Coolest Ski Route 2 #include 3 #include 4 #include 5 #include 6 #include 7 #include 8 #include 9 #include 10 #include 11 #include 12 #include 13 #include 14 typedef long l... 阅读全文

posted @ 2018-07-19 19:56 cltt 阅读(332) 评论(0) 推荐(0)

German Collegiate Programming Contest 2018​ B. Battle Royale

摘要: Battle Royale games are the current trend in video games and Gamers Concealed Punching Circles (GCPC) is the most popular game of them all. The game t 阅读全文

posted @ 2018-07-19 19:39 cltt 阅读(314) 评论(0) 推荐(0)

Down the Pyramid

摘要: Do you like number pyramids? Given a number sequence that represents the base, you are usually supposed to build the rest of the "pyramid" bottom-up: 阅读全文

posted @ 2018-07-19 19:21 cltt 阅读(684) 评论(0) 推荐(0)

huu 1251

摘要: 阅读全文

posted @ 2018-07-19 17:14 cltt 阅读(333) 评论(0) 推荐(0)

The 2018 ACM-ICPC Chinese Collegiate Programming Contest Moving On

摘要: Firdaws and Fatinah are living in a country with nn cities, numbered from 11 to nn.Each city has a risk of kidnapping or robbery. Firdaws's home locat 阅读全文

posted @ 2018-07-19 10:55 cltt 阅读(623) 评论(0) 推荐(0)

导航