結果

問題 No.197 手品
ユーザー ixmelixmel
提出日時 2017-03-31 17:44:43
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
WA  
実行時間 -
コード長 394 bytes
コンパイル時間 133 ms
コンパイル使用メモリ 11,004 KB
実行使用メモリ 8,024 KB
最終ジャッジ日時 2023-09-09 21:14:17
合計ジャッジ時間 2,488 ms
ジャッジサーバーID
(参考情報)
judge14 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 15 ms
7,872 KB
testcase_01 AC 16 ms
7,932 KB
testcase_02 AC 15 ms
7,976 KB
testcase_03 WA -
testcase_04 WA -
testcase_05 AC 14 ms
7,816 KB
testcase_06 WA -
testcase_07 AC 14 ms
7,764 KB
testcase_08 AC 15 ms
7,876 KB
testcase_09 WA -
testcase_10 AC 14 ms
7,872 KB
testcase_11 AC 14 ms
7,988 KB
testcase_12 AC 14 ms
7,744 KB
testcase_13 AC 15 ms
7,924 KB
testcase_14 AC 14 ms
7,812 KB
testcase_15 AC 15 ms
7,816 KB
testcase_16 AC 15 ms
7,928 KB
testcase_17 AC 16 ms
7,868 KB
testcase_18 AC 14 ms
7,968 KB
testcase_19 AC 14 ms
7,940 KB
testcase_20 AC 14 ms
7,932 KB
testcase_21 AC 14 ms
7,772 KB
testcase_22 AC 15 ms
7,848 KB
testcase_23 WA -
testcase_24 AC 14 ms
7,764 KB
testcase_25 AC 14 ms
7,976 KB
testcase_26 AC 15 ms
7,860 KB
testcase_27 AC 14 ms
7,868 KB
testcase_28 AC 14 ms
7,828 KB
testcase_29 AC 15 ms
7,816 KB
testcase_30 AC 14 ms
7,980 KB
testcase_31 WA -
testcase_32 WA -
testcase_33 AC 15 ms
7,776 KB
testcase_34 AC 14 ms
7,872 KB
testcase_35 AC 14 ms
7,868 KB
testcase_36 AC 15 ms
7,940 KB
testcase_37 AC 14 ms
7,812 KB
testcase_38 AC 14 ms
7,792 KB
testcase_39 AC 14 ms
7,924 KB
testcase_40 AC 15 ms
7,816 KB
testcase_41 AC 14 ms
7,872 KB
testcase_42 AC 14 ms
7,872 KB
testcase_43 WA -
testcase_44 AC 15 ms
7,980 KB
testcase_45 AC 14 ms
7,932 KB
testcase_46 AC 14 ms
7,764 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

sa=input()
n=int(input())
sb=input()
ca,cb=0,0
for i in range(3):
	if sa[i]=='o':ca+=1
	if sb[i]=='o':cb+=1
if ca!=cb:
	print("FAILURE")
else:
	if n>=2:
		print("FAILURE")
	elif n==0:
		if sa==sb:print("SUCCESS")
		else:	print("FAILURE")
	else:
		if sa[0]==sb[1] and sa[1]==sb[0] and sa[2]==sb[2] or sa[0]==sb[0] and sa[1]==sb[2] and sa[2]==sb[1]:
			print("FAILURE")
		else:print("SUCCESS")
		
0