結果
問題 | No.197 手品 |
ユーザー |
|
提出日時 | 2020-09-01 00:48:45 |
言語 | PyPy3 (7.3.15) |
結果 |
AC
|
実行時間 | 42 ms / 1,000 ms |
コード長 | 474 bytes |
コンパイル時間 | 163 ms |
コンパイル使用メモリ | 82,304 KB |
実行使用メモリ | 52,224 KB |
最終ジャッジ日時 | 2024-07-20 04:03:35 |
合計ジャッジ時間 | 3,440 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 4 |
other | AC * 43 |
ソースコード
S = input() N = int(input()) if S.count('o') in (0, 3) or N == 0: 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')