結果
問題 | No.2314 Backflip |
ユーザー |
![]() |
提出日時 | 2025-03-20 21:08:08 |
言語 | PyPy3 (7.3.15) |
結果 |
AC
|
実行時間 | 43 ms / 2,000 ms |
コード長 | 205 bytes |
コンパイル時間 | 153 ms |
コンパイル使用メモリ | 82,324 KB |
実行使用メモリ | 53,204 KB |
最終ジャッジ日時 | 2025-03-20 21:08:46 |
合計ジャッジ時間 | 1,060 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 8 |
ソースコード
s = input().strip()if not s:print('') # though the problem states S is valid, so this is just a safeguardelse:last = s[-1]flipped = '1' if last == '0' else '0'print(s[:-1] + flipped)