結果

問題 No.276 連続する整数の和(1)
ユーザー おっぺけぺーおっぺけぺー
提出日時 2018-01-22 00:12:31
言語 Scala(Beta)
(3.4.0)
結果
AC  
実行時間 915 ms / 1,000 ms
コード長 129 bytes
コンパイル時間 7,388 ms
コンパイル使用メモリ 242,884 KB
実行使用メモリ 62,040 KB
最終ジャッジ日時 2023-09-12 15:47:27
合計ジャッジ時間 18,178 ms
ジャッジサーバーID
(参考情報)
judge11 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 904 ms
61,872 KB
testcase_01 AC 894 ms
61,628 KB
testcase_02 AC 895 ms
61,672 KB
testcase_03 AC 895 ms
61,868 KB
testcase_04 AC 897 ms
61,564 KB
testcase_05 AC 915 ms
61,696 KB
testcase_06 AC 904 ms
61,388 KB
testcase_07 AC 898 ms
61,496 KB
testcase_08 AC 891 ms
61,604 KB
testcase_09 AC 885 ms
62,040 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

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