mirror of
https://git.sb/baoshuo/OI-codes.git
synced 2024-12-18 04:32:00 +00:00
13 lines
239 B
C++
13 lines
239 B
C++
#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;
|
|
}
|