Submission #8605761


Source Code Expand

Copy
#include <iostream>
#include <cstdio>
#include <algorithm>
using namespace std;
#define endl '\n'
#define pi pair<int, int>

int main(){
	ios::sync_with_stdio(false);
	cin.tie(NULL);
	
	string s;
	cin >> s;
	
	int ret;
	if(s == "SUN"){
		ret = 7;
	}
	if(s == "MON"){
		ret = 6;
	}
	if(s == "TUE"){
		ret = 5;
	}
	if(s == "WED"){
		ret = 4;
	}
	if(s == "THU"){
		ret = 3;
	}
	if(s == "FRI"){
		ret = 2;
	}
	if(s == "SAT"){
		ret = 1;
	}
	
	cout << ret << endl;

	return 0;
}

Submission Info

Submission Time
Task A - Can't Wait for Holiday
User superj6
Language C++14 (GCC 5.4.1)
Score 100
Code Size 513 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