結果
| 問題 |
No.197 手品
|
| コンテスト | |
| ユーザー |
tookunn_1213
|
| 提出日時 | 2015-04-28 23:43:01 |
| 言語 | Python2 (2.7.18) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 228 bytes |
| コンパイル時間 | 45 ms |
| コンパイル使用メモリ | 7,040 KB |
| 実行使用メモリ | 6,944 KB |
| 最終ジャッジ日時 | 2024-06-27 07:16:59 |
| 合計ジャッジ時間 | 1,662 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 4 |
| other | AC * 37 WA * 6 |
ソースコード
before = list(raw_input())
N = input()
after = list(raw_input())
count = 0
for i in range(3):
if before[i] != after[i]:
count+=1
if count <= N and before.count('o') == after.count('o'):
print 'FAILURE'
else:
print 'SUCCESS'
tookunn_1213