Submission #35534


ソースコード

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#include <stdio.h>
int main ()
{
int n;
char a[32];
char b[32];
scanf("%d",&n);
scanf("%s",a);
scanf("%s",b);
if(strcmp(a ,b)> 0 ){
printf("a\n");
}else if(strcmp(a , b) < 0){
printf("b\n");
}else{
printf("friends\n");
}
return(0);
}

ステータス

項目 データ
問題 0915 - Comparator
ユーザー名 卒業済みr1807
投稿日時 2018-05-12 17:29:00
言語 C
状態 Accepted
得点 1
ソースコード長 290 Byte
最大実行時間 26 ms
最大メモリ使用量 608 KB

セット

セット 得点 Cases
1 ALL 1 / 1 *

テストケース

ファイル名 状態 実行時間 メモリ使用量 #
in_1.txt AC 24 ms 380 KB
1
in_2.txt AC 21 ms 536 KB
1
in_3.txt AC 18 ms 364 KB
1
in_4.txt AC 17 ms 392 KB
1
in_5.txt AC 26 ms 448 KB
1
large_1.txt AC 17 ms 504 KB
1
large_2.txt AC 19 ms 556 KB
1
large_3.txt AC 19 ms 608 KB
1
rand_1.txt AC 21 ms 440 KB
1
rand_2.txt AC 22 ms 484 KB
1
rand_3.txt AC 26 ms 384 KB
1