Submission #1244945
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<math.h> #include<unordered_map> using namespace std; typedef int long long ll; const long double pi = 3.14159265358979323846264338327950288; int main() { string s,h=""; getline(cin, s); for (int i = 0; i < s.size();) { if (s[i] == ' ') { i++; } else { if (i != 0) h += " "; if (s[i] == 'L') { i += 4; h += '<'; } if (s[i] == 'R') { i += 5; h += ">"; } if (s[i] == 'A') { i += 7; h += "A"; } } } cout << h << endl; cin >> h; }
Submission Info
Submission Time | |
---|---|
Task | A - スペース高橋君 |
User | Thistle |
Language | C++14 (GCC 5.4.1) |
Score | 100 |
Code Size | 747 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, example_1.txt, example_2.txt |
All | 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 | AC | 1 ms | 256 KB |
corner_1.txt | AC | 1 ms | 256 KB |
corner_2.txt | AC | 1 ms | 256 KB |
example_0.txt | AC | 1 ms | 256 KB |
example_1.txt | AC | 1 ms | 256 KB |
example_2.txt | AC | 1 ms | 256 KB |
maxrand_0.txt | AC | 1 ms | 256 KB |
maxrand_1.txt | AC | 1 ms | 256 KB |
maxrand_2.txt | AC | 1 ms | 256 KB |
random_0.txt | AC | 1 ms | 256 KB |
random_1.txt | AC | 1 ms | 256 KB |
random_2.txt | AC | 1 ms | 256 KB |
random_3.txt | AC | 1 ms | 256 KB |
random_4.txt | AC | 1 ms | 256 KB |