結果

問題 No.201 yukicoderじゃんけん
ユーザー HaijinnHaijinn
提出日時 2017-01-17 22:01:11
言語 C90
(gcc 11.4.0)
結果
WA  
実行時間 -
コード長 407 bytes
コンパイル時間 269 ms
コンパイル使用メモリ 24,096 KB
実行使用メモリ 4,504 KB
最終ジャッジ日時 2023-08-24 16:40:43
合計ジャッジ時間 1,081 ms
ジャッジサーバーID
(参考情報)
judge13 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 WA -
testcase_02 WA -
testcase_03 AC 1 ms
4,376 KB
testcase_04 AC 1 ms
4,376 KB
testcase_05 WA -
testcase_06 WA -
testcase_07 WA -
testcase_08 WA -
testcase_09 WA -
testcase_10 AC 0 ms
4,380 KB
testcase_11 WA -
testcase_12 WA -
testcase_13 WA -
testcase_14 AC 1 ms
4,376 KB
testcase_15 AC 1 ms
4,376 KB
testcase_16 WA -
testcase_17 WA -
testcase_18 WA -
testcase_19 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <stdio.h>
#include<string.h>
int main(void)
{
	char sa[100];
	char sb[100];
char pa[100000] ;
char pb[100000];
	char xa;
	char xb;
	scanf("%s%s%c",sa,pa,&xa);
	(void)getchar();
	scanf("%s%s%d",sb,pb);
	(void)getchar();
	scanf("%c",&xb);
	if(strlen(pa)>strlen(pb)){
		printf("%s\n",sa);
	}else if(strlen(pa)<strlen(pb)){
		printf("%s\n",sb);
		
	}else if(pa==pb){
		printf("-1\n");
	}
	
	return 0;
}
0