結果

問題 No.197 手品
ユーザー s_shoheis_shohei
提出日時 2020-08-02 18:13:46
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 403 bytes
コンパイル時間 1,632 ms
コンパイル使用メモリ 86,608 KB
実行使用メモリ 71,488 KB
最終ジャッジ日時 2023-09-26 09:06:33
合計ジャッジ時間 7,755 ms
ジャッジサーバーID
(参考情報)
judge12 / judge11
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 74 ms
71,184 KB
testcase_01 AC 73 ms
71,048 KB
testcase_02 AC 74 ms
71,300 KB
testcase_03 AC 75 ms
71,212 KB
testcase_04 AC 73 ms
71,044 KB
testcase_05 AC 73 ms
71,044 KB
testcase_06 AC 74 ms
71,392 KB
testcase_07 AC 72 ms
71,068 KB
testcase_08 AC 74 ms
71,300 KB
testcase_09 AC 74 ms
71,092 KB
testcase_10 AC 75 ms
71,380 KB
testcase_11 AC 72 ms
71,092 KB
testcase_12 AC 73 ms
71,488 KB
testcase_13 AC 73 ms
71,104 KB
testcase_14 AC 74 ms
71,392 KB
testcase_15 AC 72 ms
71,048 KB
testcase_16 AC 73 ms
71,172 KB
testcase_17 AC 74 ms
71,372 KB
testcase_18 AC 74 ms
71,164 KB
testcase_19 AC 76 ms
71,172 KB
testcase_20 AC 76 ms
71,088 KB
testcase_21 AC 73 ms
71,176 KB
testcase_22 AC 76 ms
71,080 KB
testcase_23 AC 73 ms
71,032 KB
testcase_24 WA -
testcase_25 WA -
testcase_26 AC 74 ms
71,212 KB
testcase_27 WA -
testcase_28 WA -
testcase_29 WA -
testcase_30 AC 74 ms
71,092 KB
testcase_31 AC 75 ms
71,436 KB
testcase_32 WA -
testcase_33 WA -
testcase_34 AC 75 ms
71,340 KB
testcase_35 AC 75 ms
71,380 KB
testcase_36 AC 74 ms
71,092 KB
testcase_37 AC 75 ms
71,152 KB
testcase_38 WA -
testcase_39 WA -
testcase_40 AC 74 ms
71,388 KB
testcase_41 AC 79 ms
71,204 KB
testcase_42 AC 77 ms
71,336 KB
testcase_43 AC 74 ms
71,036 KB
testcase_44 AC 73 ms
71,068 KB
testcase_45 AC 76 ms
70,996 KB
testcase_46 AC 74 ms
70,856 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

b = input()
n = int(input())
a = input()

if a.count("x") != b.count("x"): # impossible
    print("SUCCESS")
    exit()

if a.count("x") == 0 or a.count("x")==3: # xxx,ooo
    print("FAILURE")
    exit()

if a=="oxo" or a=="xox":
    if n==1:
        print("SUCCESS")
    else:
        print("FAILURE")

else: # oox, xxo, xoo, oxx
    if n<=1:
        print("SUCCESS")
    else:
        print("FAILURE")
0