結果

問題 No.276 連続する整数の和(1)
ユーザー おっぺけぺーおっぺけぺー
提出日時 2018-01-22 00:12:31
言語 Scala(Beta)
(3.1.1)
結果
AC  
実行時間 812 ms / 1,000 ms
コード長 129 bytes
コンパイル時間 6,083 ms
使用メモリ 58,996 KB
最終ジャッジ日時 2023-01-30 17:27:50
合計ジャッジ時間 15,865 ms
ジャッジサーバーID
(参考情報)
judge15 / judge12
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
使用メモリ
testcase_00 AC 801 ms
58,396 KB
testcase_01 AC 793 ms
58,860 KB
testcase_02 AC 799 ms
58,664 KB
testcase_03 AC 810 ms
58,972 KB
testcase_04 AC 807 ms
58,108 KB
testcase_05 AC 806 ms
58,456 KB
testcase_06 AC 797 ms
58,868 KB
testcase_07 AC 810 ms
58,960 KB
testcase_08 AC 812 ms
58,864 KB
testcase_09 AC 810 ms
58,996 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

object Main extends App {
    
    val n = scala.io.StdIn.readLine().toLong
    
    println(if (n % 2 == 0) n / 2 else n)
    
}
0