結果
問題 | No.197 手品 |
ユーザー |
|
提出日時 | 2018-09-07 05:01:05 |
言語 | Python2 (2.7.18) |
結果 |
AC
|
実行時間 | 12 ms / 1,000 ms |
コード長 | 380 bytes |
コンパイル時間 | 506 ms |
コンパイル使用メモリ | 6,912 KB |
実行使用メモリ | 6,400 KB |
最終ジャッジ日時 | 2024-07-20 03:54:56 |
合計ジャッジ時間 | 2,005 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 4 |
other | AC * 43 |
ソースコード
S = raw_input() N = input() T = raw_input() if S.count('o') != T.count('o'): print "SUCCESS" elif S.count('o') == 0 or S.count('o') == 3: print "FAILURE" else: target = 'o' if S.count('o') == 1 else 'x' if S[1] == target and S == T and N == 1: print "SUCCESS" else: print "SUCCESS" if abs(S.index(target) - T.index(target)) > N else "FAILURE"