結果

問題 No.1337 Fair Otoshidama
ユーザー CuriousFairy315CuriousFairy315
提出日時 2021-01-15 21:47:07
言語 Kotlin
(1.9.23)
結果
AC  
実行時間 333 ms / 2,000 ms
コード長 773 bytes
コンパイル時間 13,973 ms
コンパイル使用メモリ 418,356 KB
実行使用メモリ 55,884 KB
最終ジャッジ日時 2023-08-17 16:41:30
合計ジャッジ時間 23,772 ms
ジャッジサーバーID
(参考情報)
judge15 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 319 ms
54,076 KB
testcase_01 AC 322 ms
53,616 KB
testcase_02 AC 322 ms
53,760 KB
testcase_03 AC 320 ms
55,664 KB
testcase_04 AC 323 ms
54,172 KB
testcase_05 AC 321 ms
53,624 KB
testcase_06 AC 322 ms
54,096 KB
testcase_07 AC 327 ms
53,748 KB
testcase_08 AC 333 ms
53,656 KB
testcase_09 AC 320 ms
55,884 KB
testcase_10 AC 321 ms
54,124 KB
testcase_11 AC 322 ms
54,000 KB
testcase_12 AC 325 ms
53,688 KB
testcase_13 AC 326 ms
55,608 KB
testcase_14 AC 325 ms
53,936 KB
testcase_15 AC 324 ms
53,748 KB
testcase_16 AC 326 ms
54,128 KB
testcase_17 AC 320 ms
53,748 KB
testcase_18 AC 323 ms
54,100 KB
testcase_19 AC 320 ms
53,916 KB
testcase_20 AC 318 ms
53,924 KB
testcase_21 AC 325 ms
53,744 KB
testcase_22 AC 320 ms
53,708 KB
testcase_23 AC 318 ms
55,656 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

package yukicoder

import java.util.*

class Main(private val args : Array<String>) : Runnable {
    override fun run() {
        solve(args)
    }
    private fun solve(@Suppress("UNUSED_PARAMETER") args: Array<String>) {
        Scanner(System.`in`).use { sc ->
            val X = sc.nextLong()
            val Y = sc.nextLong()
            val Z = sc.nextLong()
            println(if ((X + Y + Z) % 3 == 0L) "Yes" else "No")
        }
    }
}

/** 確保するメモリの大きさ(単位: MB)  */
private const val MEMORY: Long = 64

fun main(args: Array<String>) {
    Thread.setDefaultUncaughtExceptionHandler { _: Thread?, e: Throwable ->
        e.printStackTrace()
        System.exit(1)
    }
    Thread(null, Main(args = args), "", MEMORY * 1048576L).start()
}
0