結果
問題 |
No.197 手品
|
ユーザー |
![]() |
提出日時 | 2015-10-12 15:33:24 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
RE
|
実行時間 | - |
コード長 | 404 bytes |
コンパイル時間 | 83 ms |
コンパイル使用メモリ | 12,544 KB |
実行使用メモリ | 10,880 KB |
最終ジャッジ日時 | 2024-06-27 13:05:56 |
合計ジャッジ時間 | 2,667 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 RE * 2 |
other | AC * 9 WA * 8 RE * 26 |
ソースコード
S_b = [c for c in input()] N = int(input()) S_a = [c for c in input()] if N == 0: if S_b != S_a: print('SUCCESS') else: print('FAILURE') elif N == 1: if abs(S_b.index('o') - S_a.index('o')) != 1: print('SUCCESS') else: print('FAILURE') else: if (N - abs(S_b.index('o') - S_a('o'))) % 2 == 1: print('SUCCESS') else: print('FAILURE')