結果
| 問題 |
No.1942 Leading zero
|
| コンテスト | |
| ユーザー |
terasa
|
| 提出日時 | 2022-05-21 18:39:05 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
RE
|
| 実行時間 | - |
| コード長 | 442 bytes |
| コンパイル時間 | 189 ms |
| コンパイル使用メモリ | 82,048 KB |
| 実行使用メモリ | 79,104 KB |
| 最終ジャッジ日時 | 2024-09-20 12:03:16 |
| 合計ジャッジ時間 | 868 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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