結果

問題 No.197 手品
コンテスト
ユーザー tookunn_1213
提出日時 2015-04-29 00:17:05
言語 Python2
(2.7.18)
結果
WA  
実行時間 -
コード長 261 bytes
コンパイル時間 387 ms
コンパイル使用メモリ 6,912 KB
実行使用メモリ 6,944 KB
最終ジャッジ日時 2024-06-27 08:11:37
合計ジャッジ時間 2,001 ms
ジャッジサーバーID
(参考情報)
judge1 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3 WA * 1
other AC * 38 WA * 5
権限があれば一括ダウンロードができます

ソースコード

diff #

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'
0