結果
問題 | No.1942 Leading zero |
ユーザー | titan23 |
提出日時 | 2022-06-24 12:07:22 |
言語 | PyPy3 (7.3.15) |
結果 |
AC
|
実行時間 | 73 ms / 2,000 ms |
コード長 | 254 bytes |
コンパイル時間 | 165 ms |
コンパイル使用メモリ | 82,408 KB |
実行使用メモリ | 77,184 KB |
最終ジャッジ日時 | 2024-04-25 18:02:03 |
合計ジャッジ時間 | 679 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge1 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 39 ms
54,352 KB |
testcase_01 | AC | 38 ms
53,680 KB |
testcase_02 | AC | 73 ms
77,184 KB |
ソースコード
import sys input = lambda: sys.stdin.readline().rstrip() from collections import deque # ----------------------- # n = int(input()) for _ in range(n): q = deque(list(input())) while len(q) > 1 and q[0] == '0': q.popleft() print(''.join(q))