Бодолт илгээх | Бүх бодолтууд | Шилдэг бодолтууд | Жагсаалт руу буцах |
RGB7119 - Улирал |
Өгөгдсөн сар аль улиралд хамаарах вэ. Улирлыг англиар бичихдээ эхний үсгийг томоор бичнэ үү.
2-р сарыг хаварт тооцно уу.
Input
Натурал тоо. 1<=n<=12.
Output
Улирлын нэр англиар.
Example
Input: 3 Output: Spring
Нэмсэн: | Bataa |
Огноо: | 2011-06-21 |
Хугацааны хязгаарлалт: | 1s |
Эх кодын хэмжээний хязгаарлалт: | 50000B |
Memory limit: | 1536MB |
Cluster: | Cube (Intel G860) |
Програмчлалын хэлүүд: | ADA95 ASM32 BASH BF C NCSHARP CSHARP C++ 4.3.2 CPP C99 CLPS LISP sbcl LISP clisp D ERL FORTRAN HASK ICON ICK JAVA JS-RHINO JULIA LUA NEM NICE OCAML PAS-GPC PAS-FPC PERL PHP PIKE PRLG-swi PYTHON PYPY3 PYTHON3 RUBY SCALA SCM guile ST TCL WHITESPACE |
hide comments
|
|||||||||
2024-02-18 14:20:10
#include <iostream> using namespace std; int main() { int a; cin >> a; if (a >= 2 && a <= 4) cout << "spring"; else if (a >= 5 && a <= 7) cout << "summer"; else if (a >= 8 && a <= 10) cout << "autumn"; else if (a == 11 || a == 12 || a == 1) cout << "winter"; else cout << "Invalid month number"; return 0; } |
|||||||||
2024-02-02 13:38:07
int s, m, t=0, c, h, n; cin>>n; if(n==1) cout<<"Monday"; if(n==2) cout<<"Tuesday"; if(n==3) cout<<"Wednesday"; if(n==4) cout<<"Thursday"; if(n==5) cout<<"Friday"; if(n==6) cout<<"Saturday"; if(n==7) cout<<"Sunday"; |
|||||||||
2023-11-23 09:17:40
#include<bits/stdc++.h> using namespace std; int main(){ int n; cin>>n; switch(n){ case 1: cout<<"Winter"<<endl;break; case 2: cout<<"Spring"<<endl;break; case 3: cout<<"Spring"<<endl;break; case 4: cout<<"Spring"<<endl;break; case 5: cout<<"Summer"<<endl;break; case 6: cout<<"Summer"<<endl;break; case 7: cout<<"Summer"<<endl;break; case 8: cout<<"Autumn"<<endl;break; case 9: cout<<"Autumn"<<endl;break; case 10: cout<<"Autumn"<<endl;break; case 11: cout<<"Winter"<<endl;break; case 12: cout<<"Winter"<<endl;break; } } |
|||||||||
2023-10-27 05:23:13
#include<iostream> using namespace std; int main(){ int a; cin >> a; if(a==1) cout << "Winter"; if(a==2) cout << "Spring"; if(a==3) cout << "Spring"; if(a==4) cout << "Spring"; if(a==5) cout << "Summer"; if(a==6) cout << "Summer"; if(a==7) cout << "Summer"; if(a==8) cout << "Autumn"; if(a==9) cout << "Autumn"; if(a==10) cout << "Autumn"; if(a==11) cout << "Winter"; if(a==12) cout << "Winter"; return 0; } |
|||||||||
2023-06-30 07:48:19
#include <iostream> using namespace std; int main(){ int a; scanf("%d",&a); if(a==1){ printf("whinter"); } if(a==2){ printf("autumn"); if(a==3) printf("summer"); } if(a==4){ printf("fall"); }ahah return 0; } zaza huul2 |
|||||||||
2023-01-30 05:41:42
#include <iostream> using namespace std; int main() { int a; cin >> a; if (a==1) { cout << "January"; } if (a==2) { cout << "Febuary"; } if (a==3) { cout << "March"; } if (a==4) { cout << "April" ; } if (a==5) { cout << "May" : } if (a==6) { cout << "June" ; } if (a==7) { cout << "July" ; } if (a==8) { cout << "August" ; } if (a==9) { cout << "September" ; } |
|||||||||
2023-01-24 18:18:21
#include<iostream> using namespace std; int main(){ int a; cin >> a; if(a==1) cout << "Winter"; if(a==2) cout << "Spring"; if(a==3) cout << "Spring"; if(a==4) cout << "Spring"; if(a==5) cout << "Summer"; if(a==6) cout << "Summer"; if(a==7) cout << "Summer"; if(a==8) cout << "Autumn"; if(a==9) cout << "Autumn"; if(a==10) cout << "Autumn"; if(a==11) cout << "Winter"; if(a==12) cout << "Winter"; return 0; } hhe |
|||||||||
2022-12-23 15:50:50
#include <iostream> using namespace std; int main() { int a ; cin >> a ; if( 1 <= a && a <= 12 ){ if( 1 == a || 11 == a || 12 == a){ cout << "Winter"; }else if( 2 == a || 3 == a || 4 == a){ cout << "Spring"; }else if( 5 == a || 6 == a || 7 == a){ cout << "Summer"; }else if( 8 == a || 8 == a || 10 == a){ cout << "Autumn"; } }else{ cout << "байхгүй"; } return 0; } |
|||||||||
2022-12-03 06:34:07
huul suguuda #include <iostream> using namespace std; int main() { string arr[]={ "Winter", "Spring", "Spring", "Spring", "Summer", "Summer", "Summer", "Autumn", "Autumn", "Autumn", "Winter", "Winter" }; int a; cin>>a; cout<<arr[a-1]; return 0; } |
|||||||||
2022-11-10 06:44:21
#include <iostream> using namespace std; int main() { int n; cin>>n; if(n==1){ cout<<"Winter"; } if(n==2){ cout<<"Spring"; } if(n==3){ cout<<"Spring"; } if(n==4){ cout<<"Spring"; } if(n==5){ cout<<"Summer"; } if(n==6){ cout<<"Summer"; } if(n==7){ cout<<"Summer"; } if(n==8){ cout<<"Autumn"; } if(n==9){ cout<<"Autumn"; } if(n==10){ cout<<"Autumn"; } if(n==11){ cout<<"Winter"; } if(n==12){ cout<<"Winter"; } } |