Submission #1245708


Source Code Expand

#include <bits/stdc++.h>
using namespace std;

#define pb         push_back

typedef long long ll;
const ll INF = 1000000000000000000ll;
const ll MOD = 1000000007ll;
const double EPS = 1e-8;

int main(void) {
	//ios_base::sync_with_stdio(false);
	//cin.tie(0);
	
	map<string, string> piano;
	piano["WBWBWWBWBWBW"] = "Do";
	piano["WBWWBWBWBWWB"] = "Re";
	piano["WWBWBWBWWBWB"] = "Mi";
	piano["WBWBWBWWBWBW"] = "Fa";
	piano["WBWBWWBWBWWB"] = "So";
	piano["WBWWBWBWWBWB"] = "La";
	piano["WWBWBWWBWBWB"] = "Si";
	
	string s;
	cin >> s;

	string t = s.substr(0, 12);

	cout << piano[t] << endl;

	
	return 0;
}

Submission Info

Submission Time
Task C - ピアニスト高橋君
User tanutarou
Language C++14 (GCC 5.4.1)
Score 100
Code Size 639 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 × 1
AC × 8
Set Name Test Cases
Sample example_0.txt
All example_0.txt, handmade_0.txt, handmade_1.txt, handmade_2.txt, handmade_3.txt, handmade_4.txt, handmade_5.txt, handmade_6.txt
Case Name Status Exec Time Memory
example_0.txt AC 1 ms 256 KB
handmade_0.txt AC 1 ms 256 KB
handmade_1.txt AC 1 ms 256 KB
handmade_2.txt AC 1 ms 256 KB
handmade_3.txt AC 1 ms 256 KB
handmade_4.txt AC 1 ms 256 KB
handmade_5.txt AC 1 ms 256 KB
handmade_6.txt AC 1 ms 256 KB