結果
| 問題 | No.1942 Leading zero |
| コンテスト | |
| ユーザー |
terasa
|
| 提出日時 | 2022-05-21 18:39:05 |
| 言語 | PyPy3 (7.3.17) |
| 結果 |
RE
|
| 実行時間 | - |
| コード長 | 442 bytes |
| 記録 | |
| コンパイル時間 | 246 ms |
| コンパイル使用メモリ | 85,004 KB |
| 実行使用メモリ | 83,352 KB |
| 最終ジャッジ日時 | 2026-04-08 23:16:25 |
| 合計ジャッジ時間 | 1,136 ms |
|
ジャッジサーバーID (参考情報) |
judge2_0 / judge1_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 1 RE * 1 |
| other | RE * 1 |
ソースコード
import sys
import pypyjit
import itertools
import heapq
import math
from collections import deque, defaultdict, Counter
import string
import random
input = sys.stdin.readline
sys.setrecursionlimit(10 ** 6)
pypyjit.set_param('max_unroll_recursion=-1')
N = int(input())
for _ in range(N):
A = list(input()[:-1])
dq = deque(A)
while True:
if not dq[0] == '0':
break
dq.popleft()
print(''.join(dq))
terasa