結果

問題 No.311 z in FizzBuzzString
ユーザー くわいくわい
提出日時 2015-12-10 09:11:47
言語 Scala(Beta)
(3.4.0)
結果
AC  
実行時間 873 ms / 1,500 ms
コード長 227 bytes
コンパイル時間 9,436 ms
コンパイル使用メモリ 231,456 KB
実行使用メモリ 64,288 KB
最終ジャッジ日時 2023-10-25 11:31:45
合計ジャッジ時間 18,817 ms
ジャッジサーバーID
(参考情報)
judge13 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 836 ms
64,264 KB
testcase_01 AC 865 ms
64,256 KB
testcase_02 AC 858 ms
64,260 KB
testcase_03 AC 873 ms
64,256 KB
testcase_04 AC 864 ms
64,264 KB
testcase_05 AC 853 ms
64,244 KB
testcase_06 AC 857 ms
64,240 KB
testcase_07 AC 869 ms
64,276 KB
testcase_08 AC 865 ms
64,260 KB
testcase_09 AC 861 ms
64,260 KB
testcase_10 AC 849 ms
64,288 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import scala.io.StdIn

object Problem311 {

  def proc(n: Long): Long = {
    n / 3 * 2 + n / 5 * 2
  }

  def main(args: Array[String]) = {
    val n = StdIn.readLong()
    val result: Long = proc(n)
    println(result)
  }
}
0