Submission #762559
Source Code Expand
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef vector<int> vi;
typedef pair<int, int> pii;
#define pb push_back
#define mp make_pair
#define fi first
#define se second
int main()
{
string s,t="WBWBWWBWBWBWWBWBWWBWBWBWWBWBWWBWBWBWWBWBWWBWBWBW",r[12]={"Do","Do","Re","Re","Mi","Fa","Fa","So","So","La","La","Si"};
cin>>s;
for(int i=0;i<=t.length()-20;i++)
{
if(t.substr(i,20)==s)
{
cout<<r[i]<<endl;
return 0;
}
}
}
Submission Info
| Submission Time | |
|---|---|
| Task | C - ピアニスト高橋君 |
| User | kkrtjnj3829 |
| Language | C++14 (GCC 5.4.1) |
| Score | 100 |
| Code Size | 482 Byte |
| Status | AC |
| Exec Time | 4 ms |
| Memory | 256 KiB |
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 | 4 ms | 256 KiB |
| handmade_0.txt | AC | 4 ms | 256 KiB |
| handmade_1.txt | AC | 4 ms | 256 KiB |
| handmade_2.txt | AC | 4 ms | 256 KiB |
| handmade_3.txt | AC | 4 ms | 256 KiB |
| handmade_4.txt | AC | 4 ms | 256 KiB |
| handmade_5.txt | AC | 4 ms | 256 KiB |
| handmade_6.txt | AC | 4 ms | 256 KiB |