結果

問題 No.197 手品
コンテスト
ユーザー tookunn_1213
提出日時 2015-04-29 00:17:05
言語 PyPy2
(7.3.20)
結果
WA  
実行時間 -
コード長 261 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 122 ms
コンパイル使用メモリ 77,940 KB
最終ジャッジ日時 2025-12-03 14:52:14
ジャッジサーバーID
(参考情報)
judge1 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3 WA * 1
other AC * 38 WA * 5
権限があれば一括ダウンロードができます

ソースコード

diff #
raw source code

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