結果

問題 No.2314 Backflip
ユーザー 田中太郎田中太郎
提出日時 2023-07-19 00:39:04
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 40 ms / 2,000 ms
コード長 236 bytes
コンパイル時間 215 ms
コンパイル使用メモリ 81,792 KB
実行使用メモリ 53,212 KB
最終ジャッジ日時 2023-10-19 03:44:24
合計ジャッジ時間 1,625 ms
ジャッジサーバーID
(参考情報)
judge15 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 39 ms
53,212 KB
testcase_01 AC 38 ms
53,212 KB
testcase_02 AC 38 ms
53,212 KB
testcase_03 AC 38 ms
53,212 KB
testcase_04 AC 38 ms
53,212 KB
testcase_05 AC 38 ms
53,212 KB
testcase_06 AC 38 ms
53,212 KB
testcase_07 AC 39 ms
53,212 KB
testcase_08 AC 40 ms
53,212 KB
testcase_09 AC 38 ms
53,212 KB
testcase_10 AC 38 ms
53,212 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

s = list(input())

ans = []

for i in range(len(s)):
    if i != len(s)-1:
        ans.append(s[i])
    else:
        if s[i] == "0":
            ans.append("1")
        else:
            ans.append("0")
            
print("".join(ans))
0