結果
問題 |
No.2314 Backflip
|
ユーザー |
![]() |
提出日時 | 2023-05-27 00:19:28 |
言語 | PyPy3 (7.3.15) |
結果 |
AC
|
実行時間 | 129 ms / 2,000 ms |
コード長 | 569 bytes |
コンパイル時間 | 520 ms |
コンパイル使用メモリ | 81,792 KB |
実行使用メモリ | 80,000 KB |
最終ジャッジ日時 | 2024-12-25 11:49:51 |
合計ジャッジ時間 | 2,978 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 8 |
ソースコード
from collections import defaultdict, deque, Counter import copy from itertools import combinations, permutations, product, accumulate, groupby from heapq import heapify, heappop, heappush import math import bisect from pprint import pprint from random import randint import sys # sys.setrecursionlimit(700000) input = lambda: sys.stdin.readline().rstrip('\n') inf = float('inf') mod1 = 10**9+7 mod2 = 998244353 def ceil_div(x, y): return -(-x//y) ################################################# S = input() if S[-1] == "1": print(S[:-1]+"0") else: print(S[:-1]+"1")