Thứ mấy đây ?

View as PDF

Submit solution

Points: 0.10
Time limit: 1.0s
Memory limit: 64M
Input: stdin
Output: stdout

Authors:
Problem type

Viết chương trình nhập số nguyên từ 1 đến 7. Hiển thị tên thứ tương ứng trong tuần

Input Input một dòng duy nhất một số nguyên thuộc khoảng 1 đến 7

Output
Output một dòng duy nhất thứ hiện tại tương ứng

Examples

Input

1

Output

Monday

Input

7

Output

Sunday

Comments

Please read the guidelines before commenting.



  • 0
    leanhkiet  commented on Nov. 13, 2025, 11:49 a.m.

    include <iostream>

    using namespace std; long long n; int main() { cin>>n; if(n==1) { cout<<"Monday"; return 0; } if(n==2) { cout<<"Tuesday"; return 0; } if(n==3) { cout<<"Wednesday"; return 0; } if(n==4) { cout<<"Thursday"; return 0; } if(n==5) { cout<<"Friday"; return 0; } if(n==6) { cout<<"Saturday"; return 0; } if(n==7) { cout<<"Sunday"; return 0; } return 0; }


  • 0
    chieuminhdeptrai  commented on Oct. 1, 2025, 2:45 p.m.

    sybau


  • 0
    chieuminhdeptrai  commented on Oct. 1, 2025, 2:31 p.m.

    ez kid 😏😏😏😏😏😏😏😏😏😏😏😏😏😏😏😏😏😏😏😏


  • 0
    chieuminhdeptrai  commented on Oct. 1, 2025, 2:30 p.m.

    include <iostream>

    using namespace std;

    int main() { int thu; cin >> thu; if (thu == 7) cout << "Sunday"; else if (thu == 6) cout << "Saturday"; else if (thu == 5) cout << "Friday"; else if (thu == 4) cout << "Thursday"; else if (thu == 3 ) cout << "Wednesday"; else if (thu == 2) cout << "Tuesday"; else if (thu == 1) cout << "Monday"; return 0; }