結果
| 問題 | No.1942 Leading zero |
| コンテスト | |
| ユーザー |
terasa
|
| 提出日時 | 2022-05-21 18:40:01 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
AC
|
| 実行時間 | 110 ms / 2,000 ms |
| コード長 | 471 bytes |
| 記録 | |
| コンパイル時間 | 199 ms |
| コンパイル使用メモリ | 82,048 KB |
| 実行使用メモリ | 78,924 KB |
| 最終ジャッジ日時 | 2024-09-20 12:03:17 |
| 合計ジャッジ時間 | 960 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 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 len(dq) > 0:
if not dq[0] == '0':
break
dq.popleft()
print(''.join(dq) if len(dq) > 0 else 0)
terasa