結果
| 問題 | No.2314 Backflip |
| コンテスト | |
| ユーザー |
lam6er
|
| 提出日時 | 2025-03-20 21:08:08 |
| 言語 | PyPy3 (7.3.17) |
| 結果 |
AC
|
| 実行時間 | 56 ms / 2,000 ms |
| コード長 | 205 bytes |
| 記録 | |
| コンパイル時間 | 246 ms |
| コンパイル使用メモリ | 96,104 KB |
| 実行使用メモリ | 79,220 KB |
| 最終ジャッジ日時 | 2026-07-07 12:52:44 |
| 合計ジャッジ時間 | 2,281 ms |
|
ジャッジサーバーID (参考情報) |
judge2_0 / judge1_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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 safeguard
else:
last = s[-1]
flipped = '1' if last == '0' else '0'
print(s[:-1] + flipped)
lam6er