首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 开发语言 > C++ >

水题标题求翻译

2012-08-19 
水题题目求翻译http://acm.zju.edu.cn/onlinejudge/showProblem.do?problemCode1292就是有些细节看不懂,

水题题目求翻译
http://acm.zju.edu.cn/onlinejudge/showProblem.do?problemCode=1292
就是有些细节看不懂,然后你懂的,题目就不好做了,望各位大侠路过帮忙,最好说下思路的

[解决办法]
这个题目是很水的。

1. 题目的中心意思就是计算大数的和
2. 你要弄清楚输入输出格式:
The first line of a multiple input is an integer N, then a blank line followed by N input blocks. Each input block is in the format indicated in the problem description. There is a blank line between input blocks.

The output format consists of N output blocks. There is a blank line between output blocks.

大致翻译如下:
第一行输入一个整数N,然后一个空行,在空行后面有N个输入块。每个输入块的格式如问题描述中说明的那样,每个输入块之间有一个空行。

输出结构由N个输出块组成。每个输出块之间有一个空行。

C/C++ code
/* 一个输入块的情况 */1 // 说明只有一个输入块  // 空行,下面就是一个输入块1234567890123456789012345678901234567890123456789012345678901234567890123456789012345678900 // 输入结束时,改行只有一个0Sample Output370370367037037036703703703670  // 对应第一个输入块的输出/* 两个输入块的情况 */2 // 说明只有2个输入块  // 空行,下面就是一个输入块123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890  // 空行,输入块之间由空行分隔,下面是第2个输入块1111111111111111111111111111112222222222222222222222222222220 // 输入结束时,改行只有一个0Sample Output370370367037037036703703703670  // 对应第一个输入块的输出// 空行333333333333333333333333333333  // 对应第2个输入块的输出 

热点排行