結果

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

ソースコード

diff #

I=input
for i in range(int(I())):
	S=I()+"00"
	s=S[1]
	B=[[16,8][s<"x"],2][s<"o"]
	print(int(S[:-2])if s<"b" else int(S[2:],B)//B//B)
0