結果
| 問題 | No.197 手品 |
| コンテスト | |
| ユーザー |
_matumo_
|
| 提出日時 | 2019-07-22 18:59:08 |
| 言語 | Python3 (3.14.3 + numpy 2.4.4 + scipy 1.17.1) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 317 bytes |
| 記録 | |
| コンパイル時間 | 455 ms |
| コンパイル使用メモリ | 20,956 KB |
| 実行使用メモリ | 15,616 KB |
| 最終ジャッジ日時 | 2026-03-08 23:51:46 |
| 合計ジャッジ時間 | 5,645 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 4 |
| other | AC * 36 WA * 7 |
ソースコード
def chk(sa,sb,N):
if sa==sb and N!=1: return 1
if sa==sb and sa[0]!=sa[1] and sa[1]!=sa[2]: return 0
if sa.count('o')!=sb.count('o'): return 0
if sa[1]==sb[1] and N<2: return 0
return 1
sa=input()
N = int(input())
sb=input()
print(["SUCCESS","FAILURE"][chk(sa,sb,N)])
_matumo_