結果

問題 No.809 かけ算
コンテスト
ユーザー kazu116
提出日時 2019-05-22 15:34:05
言語 Swift
(6.2.4)
コンパイル:
swiftc _filename_ -Ounchecked -o a.out
実行:
./a.out
結果
AC  
実行時間 1,798 ms / 2,000 ms
コード長 248 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 669 ms
コンパイル使用メモリ 138,048 KB
実行使用メモリ 9,728 KB
最終ジャッジ日時 2026-05-24 05:37:15
合計ジャッジ時間 3,435 ms
ジャッジサーバーID
(参考情報)
judge3_0 / judge1_0
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 1
other AC * 6
権限があれば一括ダウンロードができます

ソースコード

diff #
raw source code

let input:[Int] = readLine()!.split(separator: " ").map{Int($0)!}

var count:Int = 2
if input[0] == 1 {
    count = 1
}

while true {
    if input[0] % count == 0 {
        break
    }
    count += 1
}

print(count, input[0] / count, separator:" ")
0