結果
問題 | No.414 衝動 |
ユーザー | aRac |
提出日時 | 2016-11-30 20:06:41 |
言語 | Scala(Beta) (3.4.0) |
結果 |
RE
|
実行時間 | - |
コード長 | 256 bytes |
コンパイル時間 | 7,735 ms |
コンパイル使用メモリ | 252,504 KB |
実行使用メモリ | 61,828 KB |
最終ジャッジ日時 | 2023-09-12 07:46:36 |
合計ジャッジ時間 | 21,973 ms |
ジャッジサーバーID (参考情報) |
judge15 / judge14 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | RE | - |
testcase_01 | AC | 903 ms
61,556 KB |
testcase_02 | AC | 900 ms
61,828 KB |
testcase_03 | RE | - |
testcase_04 | RE | - |
testcase_05 | RE | - |
testcase_06 | RE | - |
testcase_07 | AC | 892 ms
61,668 KB |
testcase_08 | RE | - |
testcase_09 | RE | - |
testcase_10 | AC | 883 ms
61,752 KB |
testcase_11 | RE | - |
testcase_12 | AC | 901 ms
61,680 KB |
ソースコード
object Main { def a(n: Int): (Int, Int) = (1 to math.sqrt(n).toInt).filter(n % _ == 0).map(d => (d, n / d)).last def main(args: Array[String]) = { val ans = a(io.StdIn.readLine.toInt) println(ans._1.toString + " " + ans._2) } }