
训练
BEconfidence
坚持才是胜利之道
展开
-
SDKD TeamContest A-E - 1005
DescriptionIn order to encourage Hiqivenfin to study math, his mother gave him a sweet candy when the day of the month was a prime number. Hiqivenfin was happy with that. But several days later, h原创 2015-04-04 23:09:15 · 535 阅读 · 0 评论 -
HUD4256 The Famous Clock
int main(){ int kase = 0; char s[50]; while( scanf("%s",s)!=EOF ){ printf("Case %d: ",++kase); if( !strcmp(s,"I") ) printf("1\n"); if( !strcmp(s,"II") ) print原创 2015-04-17 22:24:10 · 419 阅读 · 0 评论 -
HDU4247 A Famous ICPC Team
#include#include#include#includeusing namespace std;int main(){ long long int a[5]; int c=0; while(scanf("%lld%lld%lld%lld",&a[0],&a[1],&a[2],&a[3])!=EOF) { sort(a,a+4);原创 2015-04-17 22:20:55 · 643 阅读 · 0 评论 -
HDU4252 A Famous City
H - 1008Time Limit:3000MS Memory Limit:32768KB 64bit IO Format:%I64d & %I64uSubmit Status Practice HDU 4252DescriptionAfter Mr. B arrived in Warsaw, he was shocked by the原创 2015-04-17 22:13:24 · 843 阅读 · 0 评论 -
HDU4245 A Famous Music Composer
#include#includeint main(){ int kase = 0; char s[50],ss[50]; while(1 ){ if( scanf("%s",s) ==EOF ) break; scanf("%s",ss); printf("Case %d: ",++kase); if原创 2015-04-17 22:21:56 · 585 阅读 · 0 评论 -
UPC2218: Thrall’s Dream
2218: Thrall’s DreamTime Limit: 1 Sec Memory Limit: 128 MBSubmit: 253 Solved: 72[Submit][Status][Web Board]DescriptionWe never paid any heed to the ancient prophecies, like fools we cl原创 2015-04-08 12:43:00 · 744 阅读 · 0 评论 -
UPC2219: A^X mod P
2219: A^X mod PTime Limit: 5 Sec Memory Limit: 128 MBSubmit: 443 Solved: 80[Submit][Status][Web Board]DescriptionIt's easy for ACMer to calculate A^X mod P. Now given seven integers n,原创 2015-04-08 23:50:43 · 606 阅读 · 0 评论 -
sdut2410 Mine Number
Mine NumberTime Limit: 1000MS Memory limit: 65536K题目描述Every one once played the game called Mine Sweeping, here I change the rule. You are given an n*m map, every element is a '*' repres原创 2015-04-13 10:51:21 · 623 阅读 · 0 评论 -
sdut2409 The Best Seat in ACM Contest
The Best Seat in ACM ContestTime Limit: 1000MS Memory limit: 65536K题目描述Cainiao is a university student who loves ACM contest very much. It is a festival for him once when he attends ACM原创 2015-04-12 21:12:49 · 665 阅读 · 0 评论 -
sdut2411 Pixel density
Pixel densityTime Limit: 1000MS Memory limit: 65536K题目描述 Pixels per inch (PPI) or pixel density is a measurement of the resolution of devices in various contexts; typically computer di原创 2015-04-12 20:19:53 · 527 阅读 · 0 评论 -
SDUT2416 Fruit Ninja II
Fruit Ninja IITime Limit: 5000MS Memory limit: 65536K题目描述 Have you ever played a popular game named "Fruit Ninja"?Fruit Ninja (known as Fruit Ninja HD on the iPad and Fruit Nin原创 2015-04-12 20:18:15 · 584 阅读 · 0 评论 -
UPC2225: The number of steps
2217: Rescue The PrincessTime Limit: 1 Sec Memory Limit: 128 MBSubmit: 433 Solved: 177[Submit][Status][Web Board]DescriptionSeveral days ago, a beast caught a beautiful princess and th原创 2015-04-07 18:13:08 · 496 阅读 · 0 评论 -
sdut2408 Pick apples
Pick applesTime Limit: 1000ms Memory limit: 165536K 有疑问?点这里^_^题目描述Once ago, there is a mystery yard which only produces three kinds of apples. The number of each kind is infinite. A g原创 2015-04-12 22:59:00 · 668 阅读 · 0 评论 -
UPC2226: Contest Print Server
2226: Contest Print ServerTime Limit: 1 Sec Memory Limit: 128 MBSubmit: 515 Solved: 119[Submit][Status][Web Board]DescriptionIn ACM/ICPC on-site contests ,3 students share 1 computer,s原创 2015-04-07 10:38:50 · 489 阅读 · 0 评论 -
UPC2217: Rescue The Princess
2217: Rescue The PrincessTime Limit: 1 Sec Memory Limit: 128 MBSubmit: 422 Solved: 173[Submit][Status][Web Board]DescriptionSeveral days ago, a beast caught a beautiful princess and th原创 2015-04-07 12:40:37 · 1173 阅读 · 0 评论 -
HDU4255 A Famous Grid
#include#include#include#include#define N 40400#define MAX 210#define CNT 4400using namespace std;bool isprime[N];int prime[CNT],cnt;int map[MAX][MAX];bool visited[MAX][MAX];struct point {原创 2015-04-18 15:40:40 · 619 阅读 · 0 评论 -
SDKD TeamContest A-K - 1011
DescriptionYou want to visit a strange country. There are n cities in the country. Cities are numbered from 1 to n. The unique way to travel in the country is taking planes. Strangely, in this str原创 2015-04-04 23:06:58 · 496 阅读 · 0 评论 -
D-B
#include #include using namespace std;const int MAXN = 100001;int N, K;int vis[MAXN];int ret[MAXN];queue q;int BFS(int s, int d){ if (s == d) return 0; q.push(s); int cur; while (原创 2015-04-04 15:10:15 · 432 阅读 · 0 评论 -
HDU 4254 A Famous Game
J - 1010Time Limit:1000MS Memory Limit:32768KB 64bit IO Format:%I64d & %I64uSubmit Status Practice HDU 4254DescriptionMr. B and Mr. M like to play with balls. They have m原创 2015-04-17 22:10:07 · 935 阅读 · 0 评论