結果
| 問題 |
No.197 手品
|
| コンテスト | |
| ユーザー |
_matumo_
|
| 提出日時 | 2019-07-22 18:41:30 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 210 bytes |
| コンパイル時間 | 215 ms |
| コンパイル使用メモリ | 12,672 KB |
| 実行使用メモリ | 10,880 KB |
| 最終ジャッジ日時 | 2024-06-23 18:38:55 |
| 合計ジャッジ時間 | 2,998 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 4 |
| other | AC * 34 WA * 9 |
ソースコード
def chk(sa,sb,N):
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_