結果

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

ソースコード

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 == 2 and N > 0) or count <= N):
	print 'FAILURE'
else:
	print 'SUCCESS'
0