Submission #1180433
Source Code Expand
#include<iostream> #include<string> #include<cmath> #include<queue> #include<map> #include<set> #include<list> #include<iomanip> #include<vector> #include<functional> #include<algorithm> #include<cstdio> #include<unordered_map> using namespace std; typedef long long ll; int main() { string a, s; a = "WBWBWWBWBWBW"; string c[12] = { "Do","","Re","","Mi","Fa","","So","","La","","Si" }; a += a; a += a; cin >> s; for (int i = 0; i < 12; i++) { if (a[i] == 'W') { string b = a.substr(i, 20); if (b == s) { cout << c[i] << endl; break; } } } }
Submission Info
Submission Time | |
---|---|
Task | C - ピアニスト高橋君 |
User | Thistle |
Language | C++14 (GCC 5.4.1) |
Score | 100 |
Code Size | 601 Byte |
Status | AC |
Exec Time | 1 ms |
Memory | 256 KB |
Judge Result
Set Name | Sample | All | ||||
---|---|---|---|---|---|---|
Score / Max Score | 0 / 0 | 100 / 100 | ||||
Status |
|
|
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 |