Submission #2530999
Source Code Expand
#include <bits/stdc++.h> //#define int long long using namespace std; using LL = long long; using P = pair<int, int>; #define FOR(i, a, n) for(int i = (int)(a); i < (int)(n); ++i) #define REP(i, n) FOR(i, 0, n) #define pb(a) push_back(a) #define all(x) (x).begin(),(x).end() const int INF = (int)1e9; const LL INFL = (LL)1e15; const int MOD = 1e9 + 7; int dy[]={0, 0, 1, -1, 0}; int dx[]={1, -1, 0, 0, 0}; /*************** using variables **************/ string s; /**********************************************/ signed main(){ getline(cin, s); REP(i, s.size()){ if(s[i] == 'L'){ cout << "<"; i+=4; } else if(s[i] == 'R'){ cout << ">"; i+=5; } else if(s[i] == 'A'){ cout << "A"; i+=7; } if(i < s.size()) cout << " "; } cout << endl; }
Submission Info
Submission Time | |
---|---|
Task | A - スペース高橋君 |
User | wheson |
Language | C++14 (GCC 5.4.1) |
Score | 100 |
Code Size | 930 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 |