結果

問題 No.2385 Parse Integer with Radix
ユーザー 👑 p-adic
提出日時 2023-07-21 21:24:49
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
WA  
実行時間 -
コード長 229 bytes
コンパイル時間 87 ms
コンパイル使用メモリ 12,544 KB
実行使用メモリ 10,880 KB
最終ジャッジ日時 2024-09-21 22:38:46
合計ジャッジ時間 1,097 ms
ジャッジサーバーID
(参考情報)
judge5 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample WA * 1
other WA * 11
権限があれば一括ダウンロードができます

ソースコード

diff #

I,R,P=input,range,print
def J():
	return map(int,I().split())
Q=int(I())
for i in R(Q):
	S=I()+"00"
	if S[:2]=="0b":P(int(S[2:],2)/4)
	elif S[:2]=="0o":P(int(S[2:],8)/64)
	elif S[:2]=="0x":P(int(S[2:],16)/256)
	else:P(int(S)/100)
0