Submission #8604565


Source Code Expand

Copy
#include <iostream> // cin, cout, cerr
#include <algorithm> // minmax, sort, swap
#include <numeric> // iota
#include <cstdio> // printf, scanf
#include <string> // string, stoi, to_string
#include <vector> // vector
#include <queue> // queue, priority_queue
#include <deque> // deque
#include <map> // key-value pairs sorted by keys
#include <set> // set
#include <iomanip> // cout<<setprecision(n)
#include <functional> // function<void(int)>

#ifdef DEBUG
#include "debug.hpp"
#else
#define debug(...)
#endif

#define int long long // at least int64 > 9*10^18
#define ENDL '\n'
#define rep(i,n) for(int i = 0; i < (n); i++)
#define print(i) std::cout << (i) << '\n'
#define all(v) (v).begin(), (v).end()
/* libraries */

signed main() {
	std::string s;
	std::cin >> s;
	int x = 0;
	if(s=="SUN") x=0;
	else if(s=="MON") x=1;
	else if(s=="TUE") x=2;
	else if(s=="WED") x=3;
	else if(s=="THU") x=4;
	else if(s=="FRI") x=5;
	else if(s=="SAT") x=6;
	print(7-x);
	return 0;
}

Submission Info

Submission Time
Task A - Can't Wait for Holiday
User zln
Language C++14 (GCC 5.4.1)
Score 100
Code Size 1013 Byte
Status AC
Exec Time 1 ms
Memory 256 KB

Judge Result

Set Name Sample All
Score / Max Score 0 / 0 100 / 100
Status
AC × 2
AC × 7
Set Name Test Cases
Sample sample_SAT, sample_SUN
All FRI, MON, THU, TUE, WED, sample_SAT, sample_SUN
Case Name Status Exec Time Memory
FRI AC 1 ms 256 KB
MON AC 1 ms 256 KB
THU AC 1 ms 256 KB
TUE AC 1 ms 256 KB
WED AC 1 ms 256 KB
sample_SAT AC 1 ms 256 KB
sample_SUN AC 1 ms 256 KB