結果

問題 No.1291 小手調べ
ユーザー kit84kit84
提出日時 2020-11-21 10:22:27
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 22 ms / 2,000 ms
コード長 873 bytes
コンパイル時間 97 ms
コンパイル使用メモリ 10,900 KB
実行使用メモリ 9,208 KB
最終ジャッジ日時 2023-09-30 21:39:45
合計ジャッジ時間 868 ms
ジャッジサーバーID
(参考情報)
judge12 / judge11
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 22 ms
9,072 KB
testcase_01 AC 22 ms
9,104 KB
testcase_02 AC 22 ms
9,208 KB
testcase_03 AC 22 ms
9,040 KB
testcase_04 AC 22 ms
9,024 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import sys
input = sys.stdin.readline
enum = enumerate
inf = 1001001001002002002
MOD = 10**9 + 7

import collections
import random
from bisect import bisect_right as bs_r

def linput(ty=int, cvt=list):
	return cvt(map(ty,input().split()))

def vinput(rep=1, ty=int, cvt=list):
	return cvt(ty(input().rstrip()) for _ in range(rep))

def gcd(a: int, b: int):
	while b: a, b = b, a%b
	return a

def lcm(a: int, b: int):
	return a * b // gcd(a, b)

def dist(x1,y1,x2,y2):
	return abs(x1-x2)+abs(y1-y2)

#vD = [chr(ord("a")+i) for i in range(26)]

def bye(res):
	sT = "No Yes".split()
	print(sT[res])
	#exit(0)
	
def csum(v):
	vr = [0,]
	s = 0
	for a in v:
		s = (s+a)%MOD		
		vr.append(s)
	return vr

def main():
	N, = linput()
	
	for _ in range(N):
		d, = linput()
		if d==1:
			print(10)
		else:
			print("9" + "0"*(d-1))


	#print(res)

	
if __name__ == "__main__":
	main()
0