- 博客(148)
- 收藏
- 关注
原创 Taxi Fare
A - Taxi FareTime Limit:2000MS Memory Limit:65536KB 64bit IO Format:%lld & %lluSubmit Status Practice ZOJ 3600DescriptionLast September, Hangzhou raised the taxi fares.Th
2014-04-30 22:54:40 322
原创 Taxi Fare
A - Taxi FareTime Limit:2000MS Memory Limit:65536KB 64bit IO Format:%lld & %lluSubmit Status Practice ZOJ 3600DescriptionLast September, Hangzhou raised the taxi fares.Th
2014-04-30 22:52:23 169
原创 Robot
H - RobotTime Limit:1000MS Memory Limit:32768KB 64bit IO Format:%I64d & %I64uSubmit Status Practice HDU 4593DescriptionA robot is a mechanical or virtual artificial agent
2014-04-30 22:51:06 870
原创 Java Beans
J - Java BeansTime Limit:2000MS Memory Limit:65536KB 64bit IO Format:%lld & %lluSubmit Status Practice ZOJ 3714DescriptionThere are N little kids sitting in a circle, each
2014-04-30 22:49:16 637
原创 Hard to Play
H - Hard to PlayTime Limit:2000MS Memory Limit:65536KB 64bit IO Format:%lld & %lluSubmit Status Practice ZOJ 3712DescriptionMightyHorse is playing a music game called osu
2014-04-30 22:48:06 489
原创 Density of Power Network
D - Density of Power NetworkTime Limit:2000MS Memory Limit:65536KB 64bit IO Format:%lld & %lluSubmit Status Practice ZOJ 3708DescriptionThe vast power system is the most co
2014-04-30 22:46:38 633
原创 Ternary Calculation
G - Ternary CalculationTime Limit:2000MS Memory Limit:65536KB 64bit IO Format:%lld & %lluSubmit Status Practice ZOJ 3782DescriptionComplete the ternary calculation.
2014-04-30 22:43:46 573
原创 Talented Chef
C - Talented ChefTime Limit:2000MS Memory Limit:65536KB 64bit IO Format:%lld & %lluSubmit Status Practice ZOJ 3778DescriptionAs we all know, Coach Gao is a talented chef, b
2014-04-30 22:42:15 728
原创 Pokemon Master
A - Pokemon MasterTime Limit:2000MS Memory Limit:65536KB 64bit IO Format:%lld & %lluSubmit Status Practice ZOJ 3776DescriptionCalem and Serena are pokemon masters. One day
2014-04-30 22:40:33 1029
原创 YesOrNo
C - YesOrNoTime Limit:1000MS Memory Limit:32768KB 64bit IO Format:%I64d & %I64uSubmit Status Practice FZU 2154DescriptionA国认为如果字符串a可以通过操作X变成字符串b,就认为是一样的字符串。操作X:将字符串分为两部分,
2014-04-30 22:38:38 625
原创 Vanya and Cards
H - Vanya and CardsTime Limit:2000MS Memory Limit:262144KB 64bit IO Format:%I64d & %I64uSubmit Status Practice CodeForces 258ADescriptionThe Little Elephant has an integer
2014-04-30 22:35:18 437
原创 Helpful Maths
D - Helpful MathsTime Limit:2000MS Memory Limit:262144KB 64bit IO Format:%I64d & %I64uSubmit Status Practice CodeForces 339ADescriptionXenia the beginner mathematician is
2014-04-30 22:33:50 547
原创 Puzzles
C - PuzzlesTime Limit:1000MS Memory Limit:262144KB 64bit IO Format:%I64d & %I64uSubmit Status Practice CodeForces 337ADescriptionThe end of the school year is near and Ms.
2014-04-30 22:32:14 762
原创 Die Roll
G - Die RollCrawling failedSubmit Status Practice _DescriptionYakko, Wakko and Dot, world-famous animaniacs, decided to rest from acting in cartoons, and take a leave to travel a bit
2014-04-30 22:29:15 682
原创 0 or 1
I - 0 or 1Time Limit:2000MS Memory Limit:32768KB 64bit IO Format:%I64d & %I64uSubmit Status Practice HDU 2608DescriptionSolving problem is a interesting thing. Yifenfei l
2014-04-30 22:26:10 913
原创 An easy problem
B - An easy problemCrawling failedSubmit Status Practice _DescriptionWhen Teddy was a child , he was always thinking about some simple math problems ,such as “What it’s 1 cup of wate
2014-04-30 22:24:51 377
原创 War
A - WarTime Limit:1000MS Memory Limit:32768KB 64bit IO Format:%I64d & %I64uSubmit Status Practice HDU 2600Description War is the reciprical and violent application of
2014-04-30 22:23:10 386
原创 Shopaholic
H - ShopaholicTime Limit:1000MS Memory Limit:32768KB 64bit IO Format:%I64d & %I64uSubmit Status Practice HDU 1678DescriptionLindsay is a shopaholic. Whenever there is a dis
2014-04-30 22:21:19 472
原创 Optimal Parking
C - Optimal ParkingTime Limit:1000MS Memory Limit:32768KB 64bit IO Format:%I64d & %I64uSubmit Status Practice HDU 1673DescriptionWhen shopping on Long Street, Michael usual
2014-04-30 22:19:30 399
原创 Just a Numble
E - Just a NumbleTime Limit:1000MS Memory Limit:32768KB 64bit IO Format:%I64d & %I64uSubmit Status Practice HDU 2117DescriptionNow give you two integers n m, you just tel
2014-04-30 22:11:56 321
原创 Calculate S(n)
#include using namespace std;int main(){ long long sum,n; while (cin>>n) { sum=0; n%=10000; sum=(n*(n+1)/2)*(n*(n+1)/2)%10000; if(sum>-1&&sum<10) cout<<"000"<<sum<<endl;
2014-04-30 22:08:07 422
原创 Secret Number
A - Secret NumberCrawling failedSubmit Status Practice _Description有一天, KIKI 收到一张奇怪的信, 信上要KIKI 计算出给定数各个位上数字为偶数的和.eg. 5548结果为12 , 等于 4 + 8KIKI 很苦恼. 想请你帮忙解决这个问题.
2014-04-30 22:06:12 421
原创 . Line to Cashier
A. Line to Cashiertime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputLittle Vasya went to the supermarket to get some groceries. He
2014-03-30 18:41:47 521
原创 Garland
B. Garlandtime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputOnce little Vasya read an article in a magazine on how to make beautifu
2014-03-30 18:40:01 553
原创 Vanya and Cards
Vanya and CardsDescriptionThe Little Elephant has an integer a, written in the binary notation. He wants to write this number on a piece of paper.To make sure that the number a fits on the p
2014-03-29 23:25:18 409
原创 Helpful Maths
Helpful MathsDescriptionXenia the beginner mathematician is a third year student at elementary school. She is now learning the addition operation.The teacher has written down the sum of mult
2014-03-29 23:22:09 400
原创 -Puzzles
C - PuzzlesCrawling in process...Crawling failedTime Limit:1000MS Memory Limit:262144KB 64bit IO Format:%I64d & %I64u SubmitStatus Practice CodeForces 337A Description
2014-03-29 23:06:47 541
原创 Valera and X
A. Valera and Xtime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputValera is a little boy. Yesterday he got a huge Math hometask at s
2014-03-25 19:56:51 439
原创 0or1
题目要求:S(n)=T(1)+T(2)+......+T(n);T(n)等于n的所有约数之和。例:T(3)=1+3;T(4)=1+2+4.输出S(n)%2,结果只有0和1两种情况。#includeusing namespace std;int main(){ int t; scanf("%d",&t); while(t--) {
2014-03-25 11:10:24 775
原创 Gravity Flip
A. Gravity Fliptime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputLittle Chris is bored during his physics lessons (too easy), so he
2014-03-25 11:02:26 599
原创 Shopaholic
点击打开链接#include#includeusing namespace std;int a[20005];int main(){ int t; cin>>t; while(t--) { int n; cin>>n; int sum=0; for(int i=0;i<
2014-03-12 21:04:20 415
原创 Optimal Parking
题目链接#include#includeusing namespace std;int a[105];int main(){ int t,i,sum; cin>>t; while(t--) { sum=0; int n; cin>>n; for(i=0;i<n;i++)
2014-03-12 21:01:45 442
原创 Just a Numble
题目链接Problem DescriptionNow give you two integers n m, you just tell me the m-th number after radix point in 1/n,for example n=4,the first numble after point is 2,the second is 5,and al
2014-03-05 21:26:02 490
原创 Calculate S(n)
题目链接Problem DescriptionCalculate S(n).S(n)=13+23 +33 +......+n3 . InputEach line will contain one integer N(1 OutputFor each case, output the last four digh
2014-03-05 21:22:55 499
原创 Secret Number
题目链接Description有一天, KIKI 收到一张奇怪的信, 信上要KIKI 计算出给定数各个位上数字为偶数的和.eg. 5548结果为12 , 等于 4 + 8KIKI 很苦恼. 想请你帮忙解决这个问题. Input输入数据有多组,每组占一行,只有一个数字,保证数字在INT范围内.
2014-03-05 21:17:08 720
原创 1099 堆积木
题目链接 题目描述小明的侄子要过生日了,小明买了一套儿童积木送他。这套积木由N个边长为1厘米的正方体小块组成,小明想把这些小块堆成一个大的矩形方体,然后将整个方体包裹上漂亮的包装纸,请问小明最少需要多少平方厘米的包装纸即可?输入格式输入的第一行为一个正整数C,表示测试样例的组数。每组输入是一个正整数N(1输
2014-02-27 15:07:34 678
原创 strncpy的用法
strncpy()属于strcpy()的扩展,使用时需要包含头文件#include string.h>.其函数原型为strncpy(char *s1,const char *s2,int n);其中有三个参数分别表示目标字符串s1,源字符串s2,拷贝长度。意思是将s2指向的字符串的前n个长度的字符放到s1指向的字符串中,并将s1原有的前n个字符覆盖.例子:#include#i
2014-02-26 19:58:05 885
原创 hdu 1247 hat‘s word
题目链接Problem DescriptionA hat’s word is a word in the dictionary that is the concatenation of exactly two other words in the dictionary.You are to find all the hat’s words in a dictio
2014-02-26 16:01:58 471
原创 poj 2001 Shortest Prefixes 还不是很没明白,还得再理解理解
题目链接DescriptionA prefix of a string is a substring starting at the beginning of the given string. The prefixes of "carbon" are: "c", "ca", "car", "carb", "carbo", and "carbon". Note th
2014-02-25 20:48:44 450
原创 找新朋友
题目描述新年快到了,天勤准备搞一个聚会,已经知道现有会员N人,把会员从1到N编号,其中会长的号码是N号,凡是和会长是老朋友的,那么该会员的号码肯定和N有大于1的公约数,否则都是新朋友,现在会长想知道究竟有几个新朋友?请你编程序帮会长计算出来。输入格式第一行是测试数据的组数CN(Case number,1输出对于每一个N,输出一行新朋友的人数,这样共有CN行输出。样例输入
2014-02-25 16:53:16 450
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人