結果
| 問題 | 
                            No.1942 Leading zero
                             | 
                    
| コンテスト | |
| ユーザー | 
                             | 
                    
| 提出日時 | 2022-06-24 12:07:22 | 
| 言語 | PyPy3  (7.3.15)  | 
                    
| 結果 | 
                             
                                AC
                                 
                             
                            
                         | 
                    
| 実行時間 | 98 ms / 2,000 ms | 
| コード長 | 254 bytes | 
| コンパイル時間 | 220 ms | 
| コンパイル使用メモリ | 82,432 KB | 
| 実行使用メモリ | 76,928 KB | 
| 最終ジャッジ日時 | 2024-11-08 05:25:46 | 
| 合計ジャッジ時間 | 913 ms | 
| 
                            ジャッジサーバーID (参考情報)  | 
                        judge1 / judge4 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| 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))