結果

問題 No.276 連続する整数の和(1)
ユーザー Leonardone
提出日時 2015-12-07 06:50:29
言語 Scala(Beta)
(3.6.2)
結果
AC  
実行時間 882 ms / 1,000 ms
コード長 233 bytes
コンパイル時間 8,034 ms
コンパイル使用メモリ 255,516 KB
実行使用メモリ 62,856 KB
最終ジャッジ日時 2024-06-29 12:01:59
合計ジャッジ時間 18,207 ms
ジャッジサーバーID
(参考情報)
judge4 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 10
権限があれば一括ダウンロードができます

ソースコード

diff #

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

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