Home Article Practice c++ 水代码

c++ 水代码

2022-09-30 20:24  views:1022  source:rdjiajunye    

/*
题目描述:有一条clever的小鱼,但是它脑袋不中用。现在,自认为很clever的小鱼向你发起了挑战:小鱼会给你三个数。
分别是小时数,分钟数,秒数。你必须告诉它在这些小时,这些分钟和这些秒里一共会过去多少秒,不然,它会把你摁进土摩擦摩擦。
限制:0<=a<=23,a<=b,c<=59;
*/
#include<bits/stdc++.h>//万能头yyds
using namespace std;
int main()
{
int a,b,c,d;
cin>>a>>b>>c;
d=a*3600+b*60+c;
cout<<d;
return 0;
}
//如有错误,请在此网站与作者 rdjiajunye 联系更改 谢谢!(必回关以提出改进)



Disclaimer: The above articles are added by users themselves and are only for typing and communication purposes. They do not represent the views of this website, and this website does not assume any legal responsibility. This statement is hereby made! If there is any infringement of your rights, please contact us promptly to delete it.

字符:    改为:
去打字就可以设置个性皮肤啦!(O ^ ~ ^ O)