結果
| 問題 | No.499 7進数変換 |
| コンテスト | |
| ユーザー |
horiesiniti
|
| 提出日時 | 2017-06-24 05:17:57 |
| 言語 | Ruby (3.4.1) |
| 結果 |
AC
|
| 実行時間 | 95 ms / 1,000 ms |
| コード長 | 101 bytes |
| コンパイル時間 | 86 ms |
| コンパイル使用メモリ | 7,680 KB |
| 実行使用メモリ | 12,416 KB |
| 最終ジャッジ日時 | 2024-10-04 02:00:16 |
| 合計ジャッジ時間 | 4,431 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 31 |
コンパイルメッセージ
Main.rb:1: warning: assigned but unused variable - sum Syntax OK
ソースコード
sum=0 n=gets.to_i a=[] while n>0 a<<n%7 n=n/7 end if a!=[] then puts a.reverse*"" else puts 0 end
horiesiniti