結果

問題 No.882 約数倍数
コンテスト
ユーザー minokasago
提出日時 2019-10-31 17:46:09
言語 Kotlin
(2.3.20)
コンパイル:
kotlinc _filename_ -include-runtime -d main.jar
実行:
kotlin main.jar
結果
AC  
実行時間 188 ms / 500 ms
コード長 246 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 9,562 ms
コンパイル使用メモリ 467,732 KB
実行使用メモリ 56,488 KB
最終ジャッジ日時 2026-04-04 15:25:00
合計ジャッジ時間 11,632 ms
ジャッジサーバーID
(参考情報)
judge1_0 / judge5_1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 4
other AC * 10
権限があれば一括ダウンロードができます

ソースコード

diff #
raw source code

fun main(args: Array<String>)
{
    val (a, b) = readLine()!!.split(" ").map { it.toInt() }
    
    for (i in 1..a) {
        if (a % i == 0 && i % b == 0) {
            println("YES")
            return;
        }
    }
    
    println("NO")
}
0