結果

問題 No.276 連続する整数の和(1)
ユーザー LeonardoneLeonardone
提出日時 2015-12-07 06:53:10
言語 Scala(Beta)
(3.4.0)
結果
AC  
実行時間 946 ms / 1,000 ms
コード長 192 bytes
コンパイル時間 8,124 ms
コンパイル使用メモリ 243,596 KB
実行使用メモリ 61,820 KB
最終ジャッジ日時 2023-09-11 22:28:23
合計ジャッジ時間 18,244 ms
ジャッジサーバーID
(参考情報)
judge14 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 925 ms
61,520 KB
testcase_01 AC 919 ms
61,644 KB
testcase_02 AC 938 ms
61,500 KB
testcase_03 AC 936 ms
61,820 KB
testcase_04 AC 946 ms
61,644 KB
testcase_05 AC 935 ms
61,516 KB
testcase_06 AC 944 ms
61,608 KB
testcase_07 AC 921 ms
61,648 KB
testcase_08 AC 921 ms
61,472 KB
testcase_09 AC 928 ms
61,492 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

// yukicoder My Practice
// authoer: Leonardone @ NEETSDKASU

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