|
|
|
|
背景 Background |
|
|
为了for beginngers,特设此题,^_^
|
|
|
|
|
|
|
|
描述 Description |
|
|
马拉松冠军选手跑完全程用了x小时y分z秒,请你算出这位选手共用了多少秒。
格式:输入一个时、分、秒分别以空格分开,输出:把总用时间转换为一个秒数。
如:
输入2 3 4 代表2小时3分钟4秒
输出7384 代表一共有7384 秒
|
|
|
|
|
|
|
|
输入格式 Input Format |
|
|
输入一个时、分、秒分别以空格分开,数字均为整数
|
|
|
|
|
|
|
|
输出格式 Output Format |
|
|
一个整数,即把总用时间转换为一个秒数。 |
|
|
|
|
|
|
|
时间限制 Time Limitation |
|
|
各个测试点1s
|
|
|
|
|
|
|
|
注释 Hint |
|
|
Free Pascal Code:
-------------------
program Plus;
var a,b:longint;
begin
readln(a,b);
writeln(a+b);
end.
C++ Code:
-------------------
#include <iostream>
using namespace std;
int main(){
int a,b;
cin>>a>>b;
cout<<a+b<<endl;
return 0;
}
|
|
|
|
|
|
|
|
|
Flag |
|
题号 |
P1679 |
|
模拟 |
通过 |
110人 |
提交 |
399次 |
通过率 |
28% |
难度 |
0 |
|
|
|
|
|
|