結果
| 問題 | No.1942 Leading zero |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2022-06-24 12:07:01 |
| 言語 | PyPy3 (7.3.17) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 245 bytes |
| 記録 | |
| コンパイル時間 | 196 ms |
| コンパイル使用メモリ | 84,912 KB |
| 実行使用メモリ | 81,808 KB |
| 最終ジャッジ日時 | 2026-05-08 11:46:40 |
| 合計ジャッジ時間 | 1,241 ms |
|
ジャッジサーバーID (参考情報) |
judge1_0 / judge3_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 1 WA * 1 |
| other | WA * 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 q and q[0] == '0':
q.popleft()
print(''.join(q))