結果
| 問題 | No.499 7進数変換 |
| コンテスト | |
| ユーザー |
horiesiniti
|
| 提出日時 | 2017-06-24 05:17:57 |
| 言語 | Ruby (4.0.2) |
| 結果 |
AC
|
| 実行時間 | 51 ms / 1,000 ms |
| コード長 | 101 bytes |
| 記録 | |
| コンパイル時間 | 297 ms |
| コンパイル使用メモリ | 8,960 KB |
| 実行使用メモリ | 14,848 KB |
| 最終ジャッジ日時 | 2026-04-20 00:46:50 |
| 合計ジャッジ時間 | 3,506 ms |
|
ジャッジサーバーID (参考情報) |
judge1_0 / judge2_1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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