結果

問題 No.311 z in FizzBuzzString
ユーザー nnsniconnsnico
提出日時 2022-09-18 03:55:33
言語 Kotlin
(1.9.23)
結果
AC  
実行時間 277 ms / 1,500 ms
コード長 205 bytes
コンパイル時間 11,031 ms
コンパイル使用メモリ 428,900 KB
実行使用メモリ 51,892 KB
最終ジャッジ日時 2023-10-25 03:03:47
合計ジャッジ時間 15,275 ms
ジャッジサーバーID
(参考情報)
judge15 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 274 ms
51,880 KB
testcase_01 AC 272 ms
51,892 KB
testcase_02 AC 270 ms
51,888 KB
testcase_03 AC 272 ms
51,888 KB
testcase_04 AC 272 ms
51,892 KB
testcase_05 AC 277 ms
51,876 KB
testcase_06 AC 272 ms
51,880 KB
testcase_07 AC 276 ms
51,892 KB
testcase_08 AC 277 ms
51,888 KB
testcase_09 AC 275 ms
51,880 KB
testcase_10 AC 277 ms
51,892 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Main.kt:3:10: warning: parameter 'args' is never used
fun main(args: Array<String>) {
         ^

ソースコード

diff #

import java.io.PrintWriter

fun main(args: Array<String>) {
  val pw = PrintWriter(System.out)

  val n = readLine()?.toLong() ?: 0

  val result = (n / 3 + n / 5) * 2

  pw.println(result)

  pw.flush()
}
0