mirror of
https://git.sb/baoshuo/OI-codes.git
synced 2024-11-09 17:18:49 +00:00
655. 天数转换
https://www.acwing.com/problem/content/submission/code_detail/6835598/
This commit is contained in:
parent
6b4e3e28cf
commit
e7f37c6157
12
AcWing/655/655.cpp
Normal file
12
AcWing/655/655.cpp
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
#include <bits/stdc++.h>
|
||||||
|
|
||||||
|
using namespace std;
|
||||||
|
|
||||||
|
int main() {
|
||||||
|
int n;
|
||||||
|
cin >> n;
|
||||||
|
cout << n / 365 << " ano(s)" << endl;
|
||||||
|
cout << n % 365 / 30 << " mes(es)" << endl;
|
||||||
|
cout << n % 365 % 30 << " dia(s)" << endl;
|
||||||
|
return 0;
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user