Submission #8606168


Source Code Expand

Copy
#include<bits/stdc++.h>
#define mp make_pair
#define pb push_back
#define ii pair<int,int>
#define all(x) (x).begin(),(x).end()
#define INF 100000000000000000
#define modulo 1000000007
#define mod 998244353
#define int long long int
using namespace std;

int32_t main(){
      ios_base::sync_with_stdio(false);
      cin.tie(NULL);
 //     freopen("q.gir","r",stdin);
 //     freopen("q.cik","w",stdout);
      map<string,int>data;
      data["SUN"]=7;
      data["MON"]=1;
      data["TUE"]=2;
      data["WED"]=3;
      data["THU"]=4;
      data["FRI"]=5;
      data["SAT"]=6;
      string s;
      cin>>s;
      if(data[s]==7)cout<<7;
      else cout<<data["SUN"]-data[s];
}

Submission Info

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