結果
問題 | No.197 手品 |
ユーザー |
|
提出日時 | 2020-09-01 00:47:59 |
言語 | PyPy3 (7.3.15) |
結果 |
WA
|
実行時間 | - |
コード長 | 464 bytes |
コンパイル時間 | 184 ms |
コンパイル使用メモリ | 82,304 KB |
実行使用メモリ | 52,224 KB |
最終ジャッジ日時 | 2024-11-17 03:01:23 |
合計ジャッジ時間 | 3,521 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 4 |
other | AC * 42 WA * 1 |
ソースコード
S = input() N = int(input()) if S.count('o') in (0, 3): if input() == S: print('FAILURE') else: print('SUCCESS') elif N == 1: x = S[0] + S[2] + S[1] y = S[1] + S[0] + S[2] if input() in (x, y): print('FAILURE') else: print('SUCCESS') else: if input().count('o') == S.count('o'): print('FAILURE') else: print('SUCCESS')