Submission #1155862
Source Code Expand
#include <iostream> #include <string> #include <vector> #include <algorithm> #include <cmath> #include <cassert> #define FOR(i,a,b) for(int i=(a);i<(b);i++) #define REP(i,n) FOR(i,0,n) #define rep(i,n) FOR(i,0,n) #define DEBUG(x) cout<<#x<<": "<<x<<endl #define vint vector<int> #define vdouble vector<double> #define vstring vector<string> using namespace std; #include<map> #include<set> #include<queue> typedef long long ll; typedef unsigned long long ull; const int MAX_N = 1000000; int main() { string s; // cin >> s; getline(cin, s); char key = '_'; rep(i, s.length()){ if(key == '_') { key = s[i]; if(i != 0) cout << ' '; } if(s[i] == ' ' || i == s.length() - 1){ if(key == 'L') cout << '<'; if(key == 'R') cout << '>'; if(key == 'A') cout << 'A'; key = '_'; } } cout << endl; }
Submission Info
Submission Time | |
---|---|
Task | A - スペース高橋君 |
User | threecourse |
Language | C++14 (GCC 5.4.1) |
Score | 100 |
Code Size | 874 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 |