結果
問題 |
No.197 手品
|
ユーザー |
![]() |
提出日時 | 2017-03-31 17:46:33 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
AC
|
実行時間 | 33 ms / 1,000 ms |
コード長 | 394 bytes |
コンパイル時間 | 104 ms |
コンパイル使用メモリ | 12,416 KB |
実行使用メモリ | 10,624 KB |
最終ジャッジ日時 | 2024-07-20 03:51:24 |
合計ジャッジ時間 | 2,764 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 4 |
other | AC * 43 |
ソースコード
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("SUCCESS") else: if n>=2: print("FAILURE") elif n==0: if sa==sb:print("FAILURE") else: print("SUCCESS") 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")