Submission #1110308


Source Code Expand

#include <iostream>
#include <iomanip>
#include <cstdio>
#include <cstring>
#include <cmath>
#include <cstdlib>
#include <algorithm>
#include <string>
#include <vector>
#include <stack>
#include <queue>
#include <set>
#include <map>
#define INF 0x3f3f3f3f
#define MOD 1000000007
using namespace std;
int dx[4]={0,0,-1,1};
int dy[4]={-1,1,0,0};

int main(){
	char c,ch[]="<>A";
	string str,Str[]={"Left","Right","AtCoder"};
	while(1) {
		cin>>str;
		for(int i=0;i<3;i++){
			if(str==Str[i]) printf("%c",ch[i]);
		}
		scanf("%c",&c);
		if(c=='\0') break;
		else printf("%c",c);
	}
	printf("\n");
	return 0;
}

Submission Info

Submission Time
Task A - スペース高橋君
User takeo1116
Language C++ (GCC 4.9.2)
Score 0
Code Size 639 Byte
Status TLE
Exec Time 2029 ms
Memory 932 KB

Compile Error

./Main.cpp: In function ‘int main()’:
./Main.cpp:28:17: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
   scanf("%c",&c);
                 ^

Judge Result

Set Name Sample All
Score / Max Score 0 / 0 0 / 100
Status
TLE × 3
TLE × 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 TLE 2029 ms 808 KB
corner_1.txt TLE 2029 ms 808 KB
corner_2.txt TLE 2027 ms 808 KB
example_0.txt TLE 2028 ms 804 KB
example_1.txt TLE 2029 ms 828 KB
example_2.txt TLE 2029 ms 884 KB
maxrand_0.txt TLE 2027 ms 804 KB
maxrand_1.txt TLE 2027 ms 884 KB
maxrand_2.txt TLE 2029 ms 884 KB
random_0.txt TLE 2027 ms 932 KB
random_1.txt TLE 2027 ms 924 KB
random_2.txt TLE 2029 ms 884 KB
random_3.txt TLE 2027 ms 884 KB
random_4.txt TLE 2027 ms 836 KB