Submission #524413


Source Code Expand

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

int main(){
	string s;
	getline(cin, s);
	int id = 0;
	while((id = s.find("Left", id)) >= 0){
		s.replace(id, 4, "<");
	}
	id = 0;
	while((id = s.find("Right", id)) >= 0){
		s.replace(id, 5, ">");
	}
	id = 0;
	while((id = s.find("AtCoder", id)) >= 0){
		s.replace(id, 7, "A");
	}

	cout << s << endl;
	
	return 0;
}

Submission Info

Submission Time
Task A - スペース高橋君
User warahiko
Language C++11 (GCC 4.9.2)
Score 100
Code Size 384 Byte
Status
Exec Time 29 ms
Memory 928 KB

Test Cases

Set Name Score / Max Score Test Cases
Sample 0 / 0 example_0.txt, example_1.txt, example_2.txt
All 100 / 100 corner_0.txt, corner_1.txt, corner_2.txt, example_0.txt, example_1.txt, example_2.txt, maxrand_0.txt, maxrand_1.txt, maxrand_2.txt, random_0.txt, random_1.txt, random_2.txt, random_3.txt, random_4.txt
Case Name Status Exec Time Memory
corner_0.txt 29 ms 736 KB
corner_1.txt 26 ms 800 KB
corner_2.txt 26 ms 920 KB
example_0.txt 25 ms 800 KB
example_1.txt 25 ms 800 KB
example_2.txt 27 ms 768 KB
maxrand_0.txt 25 ms 916 KB
maxrand_1.txt 25 ms 796 KB
maxrand_2.txt 27 ms 800 KB
random_0.txt 25 ms 808 KB
random_1.txt 27 ms 928 KB
random_2.txt 25 ms 848 KB
random_3.txt 27 ms 796 KB
random_4.txt 28 ms 800 KB