結果

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

ソースコード

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:
	print 'FAILURE'
else:
	print 'SUCCESS'
0