摘要:
Problem Description有一台机器,并且给你这台机器的工作表,工作表上有n个任务,机器在ti时间执行第i个任务,1秒即可完成1个任务。有m个询问,每个询问有一个数字q,表示如果在q时间有一个工作表之... 阅读全文
摘要:
Problem DescriptionThe annual Games in frogs' kingdom started again. The most famous game is the Ironfrog ... 阅读全文
摘要:
DescriptionGiven two integers: n and m and n is divisible by 2m, you have to write down the first n natura... 阅读全文
摘要:
DescriptionEkka and his friend Dokka decided to buy a cake. They both love cakes and that's why they want ... 阅读全文
摘要:
DescriptionYou task is to find minimal natural number N, so that N! contains exactly Q zeroes on the trail... 阅读全文
摘要:
long long mid; long long ans; while(r>=l)//二分经典模板 { mid=(l+r)/2;... 阅读全文
摘要:
DescriptionAssume the coasting is an infinite straight line. Land is in one side of coasting, sea in the o... 阅读全文
摘要:
Problem Description求A^B的最后三位数表示的整数。说明:A^B的含义是“A的B次方” Input输入数据包含多个测试实例,每个实例占一行,由两个正整数A和B组成(1int quickpow(i... 阅读全文
摘要:
DescriptionPeople are different. Some secretly read magazines full of interesting girls' pictures, others ... 阅读全文
摘要:
DescriptionFermat's theorem states that for any prime number p and for any integer a > 1, ap = a (mod p). ... 阅读全文