摘要:
Time Limit: 1000MS Memory Limit: 131072KTotal Submissions: 10622 Accepted: 3434Description Dearboy was so busy recently that now he has piles of cloth 阅读全文
摘要:
一开始用getchar(),用户体验极差= =。感觉会爆...所以没敢用string读。问了群里的说可以这样读。一次AC。(但是全场比赛只过了这道理,嗨呀好气= = ) 然后while语句里本来写的是 ss=ss-4,但是很显然,这是一个死循环。。。然后一开始还纳闷,为啥205020会死循环。。后来 阅读全文
摘要:
Description Polycarpus loves hamburgers very much. He especially adores the hamburgers he makes with his own hands. Polycarpus thinks that there are o 阅读全文
摘要:
还没看完..这目前是前35习题的。 1 ''' 2 print("Hello World!") 3 print("Hello Again") 4 5 print("I like typing this.") 6 print("This is fun.") 7 print("Yay!Printing" 阅读全文
摘要:
其他大佬的wp:http://www.safe-w22.com/index.php/archives/741 安卓之类的(zip) https://url.cn/5PyIddy WEB题 2019掘安杯,某国家题:下载下载 我一开始= = 太naive,下载了这个蓝色链接的文件,打开是这样的。(大佬 阅读全文
摘要:
Sunscreen Time Limit: 1000MS Memory Limit: 65536K Total Submissions: 12907 Accepted: 4534 Description To avoid unsightly burns while tanning, each of 阅读全文
摘要:
。。 有一头母牛,它每年年初生一头小母牛。每头小母牛从第四个年头开始,每年年初也生一头小母牛。请编程实现在第n年的时候,共有多少头母牛? Input输入数据由多个测试实例组成,每个测试实例占一行,包括一个整数n(0<n<55),n的含义如题目中描述。n=0表示输入数据的结束,不做处理。 Output 阅读全文
摘要:
题意:给你一个数M和H对(Ai,Bi)(1<=i<=H),让你求(A1B1+A2B2+ ... +AHBH)mod M. Sample Output ... _(:з」∠)_,同余定理...矩阵快速幂还不会啊。。。 阅读全文
摘要:
.. . 和斐波那契数列异曲同工~ 阅读全文
摘要:
l 在算法竞赛中不要使用头文件conio.h,包括getch()、clrscr()等函数。 l 不要让程序“按任意键退出”(例如,调用system("pause"),或者添加一个多余的getchar()),因为不会有人来“按任意键”的。 l 在算法竞赛中,每行输出均应以回车符结束,包括最后一行。除非 阅读全文
摘要:
源自挑战程序设计竞赛以及其他博客。 平时常用的头文件。bits不敢滥用。 1.插入排序 2.冒泡排序 sw代表swap的次数。 。。。 3.双向链表 4.pair ,make pair 的使用(ALDS1——3——B Queue) 5.vector的操作 6.list操作 。 6.散列法 。。 阅读全文
摘要:
2019.3.16 周六 CCCC天梯赛队员选拔 惨败 { 赛前做了二十多道PAT天梯赛题,都是水题,虽然看了18年的原题,也料到选拔就是去年的题目。。不过当时觉得有点难或者是看了一眼题解觉得比较简单,就没有做了。所以比赛的时候只拿了50points。我还是有畏难心理。而且现场解决问题的能力太弱,心 阅读全文
摘要:
1.PTA做题之warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] 百度之 https://www. 阅读全文
摘要:
Square Time Limit: 10000/5000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 19923 Accepted Submission(s): 6272 Proble 阅读全文
摘要:
Sticks Time Limit: 1000MS Memory Limit: 10000K Total Submissions: 99807 Accepted: 22696 Description George took sticks of the same length and cut them 阅读全文