HDUOJ
WendyCasr
不忘初心,方得始终
展开
-
HDUOJ:大数相加3
input:The first line of the input contains an integer T(1<=T<=20) which means the number of test cases. Then T lines follow, each line consists of two positive integers, A and B. Notice that the intege原创 2016-10-26 18:43:04 · 343 阅读 · 0 评论 -
ACM输入格式
1.格式一 Sample Input4 1 2 3 4 5 1 2 3 4 5 0 Sample Output 10 15#include<stdio.h> int main(void) { int n; int num; int sum; while(scanf("%d",&n) == 1 &&n!=0) { sum = 0; while(n--) {原创 2016-11-26 17:24:21 · 549 阅读 · 0 评论 -
文章标题
1.格式一: Sample Input4 1 2 3 4 5 1 2 3 4 5 0 Sample Output 10 15#include<stdio.h> int main(void) { int n; int num; int sum; while(scanf("%d",&n) == 1 &&n!=0) { sum = 0; while(n--) {原创 2016-11-26 17:55:47 · 194 阅读 · 0 评论