結果

問題 No.2314 Backflip
ユーザー kemunikukemuniku
提出日時 2023-05-26 22:02:04
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 65 ms / 2,000 ms
コード長 118 bytes
コンパイル時間 269 ms
コンパイル使用メモリ 87,132 KB
実行使用メモリ 71,372 KB
最終ジャッジ日時 2023-08-26 11:35:10
合計ジャッジ時間 1,703 ms
ジャッジサーバーID
(参考情報)
judge12 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 63 ms
71,036 KB
testcase_01 AC 62 ms
71,372 KB
testcase_02 AC 63 ms
71,172 KB
testcase_03 AC 65 ms
71,100 KB
testcase_04 AC 63 ms
71,072 KB
testcase_05 AC 64 ms
71,172 KB
testcase_06 AC 65 ms
71,100 KB
testcase_07 AC 65 ms
71,316 KB
testcase_08 AC 65 ms
71,284 KB
testcase_09 AC 65 ms
71,084 KB
testcase_10 AC 60 ms
71,312 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

S = list(input())
if S[-1] == "1":
    S.pop()
    S.append("0")
else:
    S.pop()
    S.append("1")
print("".join(S))
0