結果
問題 | No.1337 Fair Otoshidama |
ユーザー | CuriousFairy315 |
提出日時 | 2021-01-15 21:47:07 |
言語 | Kotlin (2.1.0) |
結果 |
AC
|
実行時間 | 341 ms / 2,000 ms |
コード長 | 773 bytes |
コンパイル時間 | 12,567 ms |
コンパイル使用メモリ | 430,548 KB |
実行使用メモリ | 51,528 KB |
最終ジャッジ日時 | 2024-11-26 13:59:51 |
合計ジャッジ時間 | 21,411 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 4 |
other | AC * 20 |
ソースコード
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() }