結果
問題 | No.756 チャンパーノウン定数 (1) |
ユーザー |
|
提出日時 | 2018-12-06 12:10:25 |
言語 | Ruby (3.4.1) |
結果 |
AC
|
実行時間 | 89 ms / 2,000 ms |
コード長 | 252 bytes |
コンパイル時間 | 222 ms |
コンパイル使用メモリ | 7,552 KB |
実行使用メモリ | 12,288 KB |
最終ジャッジ日時 | 2024-09-14 02:24:27 |
合計ジャッジ時間 | 3,430 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 20 |
コンパイルメッセージ
Syntax OK
ソースコード
#!/usr/bin/rubystarting=1bse=10while getsn=$_.to_in+=starting-2digits=1expbase=1while (x=digits*expbase*(bse-1))<=nn-=xdigits+=1expbase*=bseendnum=expbase+n/digitsd=digits-1-n%digitsd.times{num/=bse}puts num%bseend