結果
| 問題 | No.197 手品 |
| コンテスト | |
| ユーザー |
tookunn_1213
|
| 提出日時 | 2015-04-29 00:17:05 |
| 言語 | PyPy2 (7.3.20) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 261 bytes |
| 記録 | |
| コンパイル時間 | 122 ms |
| コンパイル使用メモリ | 77,940 KB |
| 最終ジャッジ日時 | 2025-12-03 14:52:14 |
|
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 WA * 1 |
| other | AC * 38 WA * 5 |
ソースコード
before = list(raw_input())
N = input()
after = list(raw_input())
count = 0
for i in range(len(before)):
if before[i] != after[i]:count+=1
if before.count('o') == after.count('o') and count <= N or (count == 2 and N > 0):
print 'FAILURE'
else:
print 'SUCCESS'
tookunn_1213