結果

問題 No.499 7進数変換
ユーザー 👑 はまやんはまやんはまやんはまやん
提出日時 2017-06-01 17:08:01
言語 Kotlin
(1.9.23)
結果
WA  
実行時間 -
コード長 180 bytes
コンパイル時間 10,314 ms
コンパイル使用メモリ 422,752 KB
実行使用メモリ 54,328 KB
最終ジャッジ日時 2024-04-30 13:19:54
合計ジャッジ時間 17,812 ms
ジャッジサーバーID
(参考情報)
judge1 / judge5
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 AC 240 ms
54,236 KB
testcase_02 AC 245 ms
54,260 KB
testcase_03 AC 241 ms
54,236 KB
testcase_04 AC 240 ms
54,128 KB
testcase_05 AC 248 ms
54,128 KB
testcase_06 AC 243 ms
54,264 KB
testcase_07 AC 243 ms
54,152 KB
testcase_08 AC 243 ms
54,240 KB
testcase_09 AC 244 ms
54,128 KB
testcase_10 AC 251 ms
54,256 KB
testcase_11 AC 257 ms
54,244 KB
testcase_12 AC 252 ms
54,248 KB
testcase_13 AC 249 ms
54,220 KB
testcase_14 AC 247 ms
54,248 KB
testcase_15 AC 248 ms
54,232 KB
testcase_16 AC 241 ms
54,112 KB
testcase_17 AC 241 ms
54,252 KB
testcase_18 AC 248 ms
54,264 KB
testcase_19 AC 243 ms
54,220 KB
testcase_20 AC 243 ms
54,240 KB
testcase_21 AC 240 ms
54,328 KB
testcase_22 AC 244 ms
54,260 KB
testcase_23 AC 243 ms
54,140 KB
testcase_24 AC 244 ms
54,288 KB
testcase_25 AC 248 ms
54,252 KB
testcase_26 AC 242 ms
54,228 KB
testcase_27 AC 246 ms
54,244 KB
testcase_28 AC 242 ms
54,280 KB
testcase_29 AC 244 ms
54,152 KB
testcase_30 AC 248 ms
54,252 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Main.kt:1:10: warning: parameter 'args' is never used
fun main(args: Array<String>) {
         ^

ソースコード

diff #

fun main(args: Array<String>) {
    var N = readLine()!!.toInt()

    var ans = ""
    while(0 < N) {
        ans = (N % 7).toString() + ans
        N /= 7
    }
    println(ans)
}
0