Submission #1676759


Source Code Expand

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

#define INF 1.1e9
#define LINF 1.1e18
#define FOR(i,a,b) for (int i = (a); i < (b); ++i)
#define REP(i,n) FOR(i,0,n)
#define ALL(v) (v).begin(), (v).end()

typedef long long ll;
typedef pair<ll, int> P;

string s;
string a[12] = {"Do","Si"," ","La"," ","So"," ","Fa","Mi"," ","Re"," "};
string b[12] = {"Fa","Mi"," ","Re"," ","Do","Si"," ","La"," ","So"," "};

int main(){
	cin.tie(0);
	ios::sync_with_stdio(false);

	cin>>s;
	auto pos=s.find("WBWBWW");
	if(pos==-1) {
		pos=s.find("BWBWB");
		cout<<b[pos%12]<<endl;
	}
	else {
		cout<<a[pos%12]<<endl;
	}

	return 0;
}

Submission Info

Submission Time
Task C - ピアニスト高橋君
User moko_freedom
Language C++14 (GCC 5.4.1)
Score 0
Code Size 669 Byte
Status WA
Exec Time 1 ms
Memory 256 KB

Judge Result

Set Name Sample All
Score / Max Score 0 / 0 0 / 100
Status
AC × 1
AC × 4
WA × 4
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 WA 1 ms 256 KB
handmade_2.txt WA 1 ms 256 KB
handmade_3.txt WA 1 ms 256 KB
handmade_4.txt WA 1 ms 256 KB
handmade_5.txt AC 1 ms 256 KB
handmade_6.txt AC 1 ms 256 KB