結果
| 問題 | No.1942 Leading zero |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2022-06-24 12:07:22 |
| 言語 | PyPy3 (7.3.17) |
| 結果 |
AC
|
| 実行時間 | 60 ms / 2,000 ms |
| コード長 | 254 bytes |
| 記録 | |
| コンパイル時間 | 168 ms |
| コンパイル使用メモリ | 85,364 KB |
| 実行使用メモリ | 81,608 KB |
| 最終ジャッジ日時 | 2026-05-08 11:46:41 |
| 合計ジャッジ時間 | 898 ms |
|
ジャッジサーバーID (参考情報) |
judge1_0 / judge3_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 1 |
ソースコード
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))