1 solutions
-
0
C :
#include<stdio.h> int main() { long long N, Y, M; scanf("%lld",&N); Y = N / 365; N %= 365; M = N / 30; N %= 30; printf("%lld ano(s)\n%lld mes(es)\n%lld dia(s)", Y, M, N); return 0; }C++ :
#include<iostream> 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; }
- 1
Information
- ID
- 641
- Time
- 1000ms
- Memory
- 128MiB
- Difficulty
- 4
- Tags
- # Submissions
- 91
- Accepted
- 39
- Uploaded By