牛客 NC21457 你能活多少秒 顺序结构题
牛客 NC21457 你能活多少秒 顺序结构题
题目描述
一年约3.156*1e7 s,输入年龄,求该年龄秒数
0<age<=200
代码实现
int 型范围 -2147483648~2147483647
(-2^31 ~ 2^31-1) 数量级 1e9
#include<iostream>
using namespace std;
int main()
{
int a,b;
cin>>a>>b;
double c=(double)a/(double)b;
printf("%.3lf",c);
return 0;
}

浙公网安备 33010602011771号