Бодолт илгээх | Бүх бодолтууд | Шилдэг бодолтууд | Жагсаалт руу буцах |
RGB7118 - Гараг |
Долоо хоногийн дугаар өгөгдөхөд харгалзах гарагийг англиар хэвлэ. Эхний үсгийг л томоор бичнэ.
Input
Натурал тоо. 1<=n<=7.
Output
Гараг.
Example
Input: 5 Output: Friday
Нэмсэн: | 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
|
||||||||
2021-11-02 07:29:03
hariu alga Last edit: 2021-11-02 07:29:43 |
||||||||
2021-10-23 06:53:51
#include<iostream> using namespace std; int main () { int a; cin>>a; switch(a) { case 1: cout<<"Monday"; break; case 2: cout<<"Tuesday"; break; case 3: cout<<"Wednesday"; break; case 4: cout<<"Thursday"; break; case 5: cout<<"Friday"; break; case 6: cout<<"Saturday"; break; case 7: cout<<"Sunday"; break; } return 0; } Last edit: 2021-10-23 06:54:17 |
||||||||
2021-10-19 12:57:47
public static void main(String[] args) { Scanner sc = new Scanner(System.in); int n = sc.nextInt(); if (n == 7) { System.out.println("Sunday"); } else if (n == 6) { System.out.println("Saturday"); } else if (n == 5) { System.out.println("Friday"); } else if (n == 4) { System.out.println("Thursday"); } else if (n == 3){ System.out.println("Wednesday"); } else if (n == 2) { System.out.println("Tuesday"); } else { System.out.println("Monday"); } } |
||||||||
2021-10-10 04:54:47
sunday monday tuesday what the fuck saturday |
||||||||
2021-06-21 18:18:19
#include<iostream> int main(){ int n; scanf("%d",&n); if(7<=n&&n>=1); if(n==1) printf("Monday"); if(n==2) printf("Tuesday"); if(n==3) printf("Wednesday"); if(n==4) printf("Thursday"); if(n==5) printf("Friday"); if(n==6) printf("Saturday"); if(n==7) printf("Sunday"); return 0; } |
||||||||
2021-04-04 09:05:10
#include<stdio.h> main() { int n; scanf("%d" , &n); switch(n) { case 1: { printf("Monday"); break; } case 2: { printf("Tuesday"); break; } case 3: { printf("Wednesday"); break; } case 4: { printf("Thursday"); break; } case 5: { printf("Friday"); break; } case 6: { printf("Saturday"); break; } case 7: { printf("Sunday"); break; } } } |
||||||||
2020-11-11 10:51:10
#include<stdio.h> main(){ int n; scanf("%d",&n); if(7<=n&&n>=1); if(n==1) printf("Monday"); if(n==2) printf("Tuesday"); if(n==3) printf("Wednesday"); if(n==4) printf("Thursday"); if(n==5) printf("Friday"); if(n==6) printf("Saturday"); if(n==7) printf("Sunday"); return 0; } im ace |
||||||||
2020-11-06 13:36:26
hi |
||||||||
2020-10-19 08:44:34
buruu ym bishuu |
||||||||
2020-08-07 06:22:28
huulaad uzeeree |