結果

問題 No.882 約数倍数
ユーザー MaboyMaboy
提出日時 2021-06-27 16:50:35
言語 Swift
(5.10.0)
結果
TLE  
実行時間 -
コード長 173 bytes
コンパイル時間 1,486 ms
コンパイル使用メモリ 126,680 KB
実行使用メモリ 16,400 KB
最終ジャッジ日時 2023-09-07 18:04:36
合計ジャッジ時間 5,205 ms
ジャッジサーバーID
(参考情報)
judge11 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 TLE -
testcase_01 -- -
testcase_02 -- -
testcase_03 -- -
testcase_04 -- -
testcase_05 -- -
testcase_06 -- -
testcase_07 -- -
testcase_08 -- -
testcase_09 -- -
testcase_10 -- -
testcase_11 -- -
testcase_12 -- -
testcase_13 -- -
権限があれば一括ダウンロードができます

ソースコード

diff #

let n = readLine()!.split(separator: " ").map{Int($0)!}
var s = "NO"
for i in 1...n[0]/n[1]{
    if n[0] % (i * n[1]) == 0{
        s = "YES"
        break
    }
}
print(s)
0