-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy patha.cpp
More file actions
27 lines (23 loc) · 684 Bytes
/
Copy patha.cpp
File metadata and controls
27 lines (23 loc) · 684 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#include <bits/stdc++.h>
using namespace std;
using ll = long long;
using vll = vector<ll>;
using vvll = vector<vll>;
using vvvll = vector<vvll>;
#define REP(i, n, m) for(ll i=n; i<(ll)m; ++i)
#define IREP(i, n, m) for(ll i=n-1; i>=m; --i)
#define rep(i, n) REP(i, 0, n)
#define irep(i, n) IREP(i, n, 0)
#define all(v) v.begin(), v.end()
int main(){
cout << setprecision(20);
string s;
cin >> s;
if(s=="SUN") cout << 7 << endl;
else if(s=="MON") cout << 6 << endl;
else if(s=="TUE") cout << 5 << endl;
else if(s=="WED") cout << 4 << endl;
else if(s=="THU") cout << 3 << endl;
else if(s=="FRI") cout << 2 << endl;
else cout << 1 << endl;
}