Submission #1372798


Source Code Expand

#include<iostream>
#include<string>

using namespace std;

int main(){
	string S;
	cin>>S;
	
	string sound[]={"Fa","Mi","Re","Do","Si","La"};
	int j=0;
    for(int i=0 ; i<S.size() ; i+=2){
    	if(S.substr(i,6)=="WBWBWB"){
    		cout<<sound[j]<<"\n";
    		break;
    	}
    	j++;
    	if(S.substr(i+1,1)=="W")i--;
    }
	return 0;
}

Submission Info

Submission Time
Task C - ピアニスト高橋君
User Hitomichan
Language C++14 (GCC 5.4.1)
Score 0
Code Size 356 Byte
Status OLE
Exec Time 1739 ms
Memory 131328 KB

Judge Result

Set Name Sample All
Score / Max Score 0 / 0 0 / 100
Status
AC × 1
AC × 7
OLE × 1
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 OLE 1739 ms 131328 KB
handmade_5.txt AC 1 ms 256 KB
handmade_6.txt AC 1 ms 256 KB