Submission #1501633
Source Code Expand
#include <bits/stdc++.h> #define rep(n) for (int I = 0; (I) < (n); ++(I) ) #define repeat(i, n) for( int i = 0; (i) < (n); ++(i) ) #define repeat_to(i, n) for( int i = 0; (i) <= (n); ++(i) ) #define repeat_from(i, m, n) for( int i = (m); (i) < (n); ++(i) ) #define repeat_from_to(i, m, n) for( int i = (m); (i) <= (n); ++(i) ) #define repeat_from_reverse(i, m, n) for( int i = (n) - 1; (i) >= (m); --(i) ) #define dump(x) cout << " " << #x << "=" << x #define vdump(v) for(size_t t=0; t<v.size(); ++t){cout << " " << #v << "[" << t << "]=" << v[t];} cout << endl using namespace std; using lint = long long; using ld = long double; int main(void) { string s; bool first = true; while( cin >> s ) { if (first) first = false; else cout << " "; if ( s == "Left" ) cout << "<"; else if ( s == "Right" ) cout << ">"; else if ( s == "AtCoder" ) cout << "A"; } return 0; }
Submission Info
Submission Time | |
---|---|
Task | A - スペース高橋君 |
User | maphylageo |
Language | C++14 (GCC 5.4.1) |
Score | 0 |
Code Size | 960 Byte |
Status | WA |
Exec Time | 1 ms |
Memory | 256 KB |
Judge Result
Set Name | Sample | All | ||||
---|---|---|---|---|---|---|
Score / Max Score | 0 / 0 | 0 / 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 | WA | 1 ms | 256 KB |
corner_1.txt | WA | 1 ms | 256 KB |
corner_2.txt | WA | 1 ms | 256 KB |
example_0.txt | WA | 1 ms | 256 KB |
example_1.txt | WA | 1 ms | 256 KB |
example_2.txt | WA | 1 ms | 256 KB |
maxrand_0.txt | WA | 1 ms | 256 KB |
maxrand_1.txt | WA | 1 ms | 256 KB |
maxrand_2.txt | WA | 1 ms | 256 KB |
random_0.txt | WA | 1 ms | 256 KB |
random_1.txt | WA | 1 ms | 256 KB |
random_2.txt | WA | 1 ms | 256 KB |
random_3.txt | WA | 1 ms | 256 KB |
random_4.txt | WA | 1 ms | 256 KB |