結果

問題 No.537 ユーザーID
ユーザー arbtarbt
提出日時 2017-09-24 21:17:37
言語 Kotlin
(1.9.23)
結果
TLE  
実行時間 -
コード長 382 bytes
コンパイル時間 10,266 ms
コンパイル使用メモリ 433,212 KB
実行使用メモリ 93,592 KB
最終ジャッジ日時 2024-04-30 16:12:20
合計ジャッジ時間 18,690 ms
ジャッジサーバーID
(参考情報)
judge4 / judge5
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 280 ms
58,824 KB
testcase_01 AC 298 ms
93,592 KB
testcase_02 AC 295 ms
62,216 KB
testcase_03 AC 290 ms
55,180 KB
testcase_04 AC 281 ms
55,212 KB
testcase_05 AC 280 ms
55,360 KB
testcase_06 AC 286 ms
55,320 KB
testcase_07 AC 285 ms
55,136 KB
testcase_08 AC 301 ms
55,300 KB
testcase_09 AC 311 ms
55,220 KB
testcase_10 AC 298 ms
55,308 KB
testcase_11 AC 302 ms
55,308 KB
testcase_12 AC 300 ms
55,216 KB
testcase_13 AC 290 ms
55,132 KB
testcase_14 AC 286 ms
55,160 KB
testcase_15 AC 293 ms
55,276 KB
testcase_16 AC 297 ms
55,244 KB
testcase_17 AC 293 ms
55,200 KB
testcase_18 TLE -
testcase_19 -- -
testcase_20 -- -
testcase_21 -- -
testcase_22 -- -
testcase_23 -- -
testcase_24 -- -
testcase_25 -- -
testcase_26 -- -
testcase_27 -- -
testcase_28 -- -
testcase_29 -- -
testcase_30 -- -
testcase_31 -- -
testcase_32 -- -
testcase_33 -- -
testcase_34 -- -
権限があれば一括ダウンロードができます
コンパイルメッセージ
Main.kt:24:11: warning: parameter 'argv' is never used
fun main( argv : Array<String> ) {
          ^

ソースコード

diff #

import java.util.Scanner

//
fun _Do() {
    
    val N = scan.nextLong()
    
    val set = mutableSetOf<String>()
    var a = 1
    while(a*a<=N){
        if(a*(N/a)==N) {
            set.add("$a${N/a}")
            set.add("${N/a}$a")
        }
        a+=1
    }
    
    println(set.size)
    
}

var scan = Scanner(System.`in`)
fun main( argv : Array<String> ) {
    _Do()
}
0