結果
問題 | No.197 手品 |
ユーザー |
![]() |
提出日時 | 2016-09-08 01:09:10 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
AC
|
実行時間 | 31 ms / 1,000 ms |
コード長 | 442 bytes |
コンパイル時間 | 99 ms |
コンパイル使用メモリ | 12,544 KB |
実行使用メモリ | 10,752 KB |
最終ジャッジ日時 | 2024-07-20 03:49:49 |
合計ジャッジ時間 | 2,796 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 4 |
other | AC * 43 |
ソースコード
S_in = input() N = int(input()) S_out = input() if N == 0 or S_in == 'ooo' or S_in == 'xxx': if S_in != S_out : print('SUCCESS') else : print('FAILURE') elif N == 1 : if S_in.count('o') != S_out.count('o') or S_in[::-1]==S_out: print('SUCCESS') else : print('FAILURE') else : # N >= 2 if S_in.count('o') != S_out.count('o') : print('SUCCESS') else : print('FAILURE')