Submission #3003107


Source Code Expand

#include <iostream>
#include <cstdio>
#include <cstring>
#include <cstdlib>
#include <cassert>
#include <climits>
#include <algorithm>
#include <string>
#include <sstream>
#include <complex>
#include <vector>
#include <list>
#include <queue>
#include <deque>
#include <stack>
#include <map>
#include <set>
#include <fstream>

using namespace std;
#define TOSTRING(x) #x
#define SZ(x) (int)(x).size()
#define REP(i,n) for(int i=0;i<(n);i++)
#define FOR(i,a,b) for(int i=(a);i<(b);i++)
#define ALL(s) (s).begin(), (s).end()
#define so(V) sort(ALL(V))
#define rev(V) reverse(ALL(V))
#define uni(v) v.erase( unique(ALL(v)) , v.end());
#define PAU system("pause")

typedef long long unsigned int llu;
typedef long long ll;
typedef vector<int> vi;
typedef vector<ll> vll;
typedef vector<vector <int> > vvi;
const int EPS = 1e-9;
const int MOD = 1e9 + 7;
const int INF = (1 << 30);
const double PI = acos(-1);

typedef pair<char,char> P;

int main() {
	cin.tie(0);
	ios::sync_with_stdio(false);
	string S;
	bool isFirst = true;
	while (cin >> S) {
		if (isFirst)isFirst = false;
		else cout << " " ;
		if (S == "Left")cout << "<";
		else if (S == "Right")cout << ">";
		else cout << "A";
	}
	cout << endl;
	PAU;
	return 0;
}

Submission Info

Submission Time
Task A - スペース高橋君
User Daylight
Language C++14 (GCC 5.4.1)
Score 100
Code Size 1276 Byte
Status AC
Exec Time 2 ms
Memory 504 KB

Compile Error

./Main.cpp: In function ‘int main()’:
./Main.cpp:56:5: warning: ignoring return value of ‘int system(const char*)’, declared with attribute warn_unused_result [-Wunused-result]
  PAU;
     ^

Judge Result

Set Name Sample All
Score / Max Score 0 / 0 100 / 100
Status
AC × 3
AC × 14
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 2 ms 504 KB
corner_1.txt AC 2 ms 504 KB
corner_2.txt AC 2 ms 504 KB
example_0.txt AC 2 ms 504 KB
example_1.txt AC 2 ms 500 KB
example_2.txt AC 2 ms 504 KB
maxrand_0.txt AC 2 ms 504 KB
maxrand_1.txt AC 2 ms 504 KB
maxrand_2.txt AC 2 ms 504 KB
random_0.txt AC 2 ms 504 KB
random_1.txt AC 2 ms 504 KB
random_2.txt AC 2 ms 504 KB
random_3.txt AC 2 ms 504 KB
random_4.txt AC 2 ms 504 KB