- 博客(19)
- 资源 (1)
- 收藏
- 关注
原创 android.os.Debug.waitForDebugger() 使用需谨慎
android.os.Debug.waitForDebugger() 通常用于service中的调试,但由于笔者
2014-10-08 09:42:38
1250
1
原创 Rightmost Digit
Problem DescriptionGiven a positive integer N, you should output the most right digit of N^N. InputThe input contains several test cases. Th
2011-07-16 21:07:51
309
原创 Buildings
Problem DescriptionWe divide the HZNU Campus into N*M grids. As you can see from the picture below, the green grids represent the buidings.
2011-07-16 15:26:26
385
原创 Biker's Trip Odometer
Problem DescriptionMost bicycle speedometers work by using a Hall Effect sensor fastened to the front fork of the bicycle. A magnet is attac
2011-07-15 23:00:51
348
原创 A+B for Input-Output Practice (VIII)
Problem DescriptionYour task is to calculate the sum of some integers. InputInput contains an integer N in the first line, and then N lines
2011-07-15 22:28:55
371
原创 A+B for Input-Output Practice (VII)
Problem DescriptionYour task is to Calculate a + b. InputThe input will consist of a series of pairs of integers a and b, separated by a spa
2011-07-15 22:17:41
461
原创 A+B for Input-Output Practice (VI)
Problem DescriptionYour task is to calculate the sum of some integers. InputInput contains multiple test cases, and one case one line. Each
2011-07-15 22:14:59
496
原创 A+B for Input-Output Practice (V)
Problem DescriptionYour task is to calculate the sum of some integers. InputInput contains an integer N in the first line, and then N lines
2011-07-15 22:08:13
349
原创 A+B for Input-Output Practice (IV)
Problem DescriptionYour task is to Calculate the sum of some integers. InputInput contains multiple test cases. Each test case contains a in
2011-07-15 22:03:30
322
原创 A+B for Input-Output Practice (III)
Problem DescriptionYour task is to Calculate a + b. InputInput contains multiple test cases. Each test case contains a pair of integers a an
2011-07-15 21:54:24
627
原创 A+B for Input-Output Practice (II)
Problem DescriptionYour task is to Calculate a + b. InputInput contains an integer N in the first line, and then N lines follow. Each line c
2011-07-15 21:46:51
415
原创 偶数求和
题目:Problem Description有一个长度为n(nInput输入数据有多组,每组占一行,包含两个正整数n和m,n和m的含义如上所述。Output对于每组输入数据,输出一个平均值序列,每组输出占一行。Sample Input3 24 2Sample Output3
2011-07-13 22:39:00
384
原创 ASCII码排序
题目:Problem Description输入三个字符后,按各字符的ASCII码从小到大的顺序输出这三个字符。 Input输入数据有多组,每组占一行,有三个字符组成,之间无空格。 Output对于每组输入数据,输出一行,字符中间用一个空格分开。 Sample Inputqwe
2011-07-12 14:07:50
268
原创 Sum Problem
题目:Problem DescriptionHey, welcome to HDOJ(Hangzhou Dianzi University Online Judge).In this problem, your task is to calculate SUM(n) = 1 +
2011-07-11 21:23:01
280
原创 A+B for Input-Output Practice (I)
题目:Problem DescriptionYour task is to Calculate a + b.Too easy?! Of course! I specially designed the problem for acm beginners. You must hav
2011-07-11 21:12:29
888
原创 回文判别
请编写函数,判断一字符串是否为回文。若是回文函数返回值为1;否则返回值为0.回文是顺读和倒读都一样的字符串。#include#define m 100int f(char *str,int i);void main(){ char str[m];int i=0; while
2011-07-10 21:59:45
401
原创 请用递归算法,求Fibonacci数列。
题目: 请用递归算法,求Fibonacci数列。#include#define m 100int f(int *,int n);void main(){ int n,a[m],i; a[0]=1,a[1]=1; scanf("%d",&n); f(a,n); for(i=
2011-07-10 17:03:07
3009
原创 请用递归算法,求1+2+3+...+n,n由键盘输入。
请用递归算法,求1+2+3+...+n,n由键盘输入。#includeint digui(int n);void main(){ int n; printf("请输入一个正整数n:\n"); scanf("%d",&n); n=digui(n);
2011-07-10 15:43:24
12211
1
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人