結果

問題 No.414 衝動
ユーザー aRacaRac
提出日時 2016-11-30 20:03:44
言語 Scala(Beta)
(3.4.0)
結果
RE  
実行時間 -
コード長 191 bytes
コンパイル時間 8,000 ms
コンパイル使用メモリ 251,320 KB
実行使用メモリ 63,184 KB
最終ジャッジ日時 2023-09-12 07:46:11
合計ジャッジ時間 23,654 ms
ジャッジサーバーID
(参考情報)
judge11 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

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

ソースコード

diff #

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]) = println(a(io.StdIn.readLine.toInt))
}
0