随笔分类 - ACM
摘要:昨天自己队做了一下第六届福建省赛,感觉有些蒙,赛后补了几道题,能力有限,一共只出A了7道题 A题 Super Mobile Charger 题目链接 http://acm.fzu.edu.cn/problem.php?pid=2212 水题 #include<iostream> #include<c
阅读全文
摘要:题目:统计一个数字可以有多少种立方和的表示方式。 分析:dp,完全背包。又见整数拆分。 #include <bits/stdc++.h> using namespace std; int cube[25]; long long F[10001]; int main() { for (int i =
阅读全文
摘要:Time Limit:2000MS Memory Limit:262144KB 64bit IO Format:%I64d & %I64u Description Robbers, who attacked the Gerda's cab, are very successful in coveri
阅读全文
摘要:转载自:http://www.cnblogs.com/shawn-ji/p/5668293.html#3470095 原题: Description Recently, Pari and Arya did some research about NP-Hard problems and they f
阅读全文
摘要:Time Limit:2000MS Memory Limit:524288KB 64bit IO Format:%I64d & %I64u Description Mike and !Mike are old childhood rivals, they are opposite in everyt
阅读全文
摘要:Time Limit:2000MS Memory Limit:262144KB 64bit IO Format:%I64d & %I64u Description Bad news came to Mike's village, some thieves stole a bunch of choco
阅读全文
摘要:Time Limit:3000MS Memory Limit:262144KB 64bit IO Format:%I64d & %I64u Time Limit:3000MS Memory Limit:262144KB 64bit IO Format:%I64d & %I64u Time Limit
阅读全文
摘要:题目链接:http://codeforces.com/contest/689/problem/A 题目链接:http://codeforces.com/contest/689/problem/A 题目链接:http://codeforces.com/contest/689/problem/A 题目链
阅读全文
摘要:Problem Description In the new year party, everybody will get a "special present".Now it's your turn to get your special present, a lot of presents no
阅读全文
摘要:Time Limit:3000MSMemory Limit:0KB64bit IO Format:%lld & %lluDescriptionYour non-profit organization (iCORE-internationalConfederation ofRevolverEnthus...
阅读全文
摘要:F -City GameTime Limit:3000MSMemory Limit:0KB64bit IO Format:%lld & %lluBob is a strategy game programming specialist. In his new city building game t...
阅读全文
摘要:复习时间Time Limit:1000MSMemory Limit:32768KB64bit IO Format:%I64d & %I64uSubmitStatusDescription为了能过个好年,xhd开始复习了,于是每天晚上背着书往教室跑。xhd复习有个习惯,在复习完一门课后,他总是挑一门更...
阅读全文
摘要:Time Limit:1000MSMemory Limit:32768KB64bit IO Format:%I64d & %I64uSubmitStatusDescription读入两个小于10000的正整数A和B,计算A+B。需要注意的是:如果A和B的末尾K(不超过8)位数字相同,请直接输出-1。...
阅读全文
摘要:C -CTime Limit:2000MSMemory Limit:262144KB64bit IO Format:%I64d & %I64uSubmitStatusPracticeCodeForces 569ADescriptionLittle Lesha loves listening to m...
阅读全文
摘要:B -BTime Limit:1000MSMemory Limit:262144KB64bit IO Format:%I64d & %I64uDescriptionnparticipants of the competition were split intomteams in some manne...
阅读全文
摘要:A -ATime Limit:2000MSMemory Limit:32768KB64bit IO Format:%lld & %lluDescriptionYou probably have played the game "Throwing Balls into the Basket". It ...
阅读全文
摘要:Time Limit:3000MSMemory Limit:Unknown64bit IO Format:%lld & %lluSubmitStatusDescriptionDuring the early stages of the Manhattan Project, the dangers o...
阅读全文
摘要:sendatable When participating in programming contests, you sometimes face the following problem: You knowhow to calcutale the output for the given in...
阅读全文
摘要:这个困扰了自己好久,终于找到了解释,还有自己改动了一点点,耐心看完一定能加深理解扩展欧几里德算法-求解不定方程,线性同余方程。 设过s步后两青蛙相遇,则必满足以下等式: (x+m*s)-(y+n*s)=k*l(k=0,1,2....) 稍微变一下形得: (n-m)*s+k*l=x-y...
阅读全文
摘要:O -计数Time Limit:2000MSMemory Limit:262144KB64bit IO Format:%I64d & %I64uDescriptionGerald got a very curious hexagon for his birthday. The boy found o...
阅读全文

浙公网安备 33010602011771号