結果
| 問題 |
No.809 かけ算
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2019-05-22 15:34:05 |
| 言語 | Swift (6.0.3) |
| 結果 |
TLE
|
| 実行時間 | - |
| コード長 | 248 bytes |
| コンパイル時間 | 821 ms |
| コンパイル使用メモリ | 125,872 KB |
| 実行使用メモリ | 17,408 KB |
| 最終ジャッジ日時 | 2024-11-30 14:08:18 |
| 合計ジャッジ時間 | 4,507 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 1 |
| other | AC * 5 TLE * 1 |
ソースコード
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:" ")