結果

問題 No.1107 三善アクセント
ユーザー 👑 箱星箱星
提出日時 2020-07-10 21:21:00
言語 Kotlin
(1.9.23)
結果
AC  
実行時間 262 ms / 2,000 ms
コード長 906 bytes
コンパイル時間 10,689 ms
コンパイル使用メモリ 428,292 KB
実行使用メモリ 54,468 KB
最終ジャッジ日時 2024-04-19 15:13:22
合計ジャッジ時間 17,323 ms
ジャッジサーバーID
(参考情報)
judge5 / judge3
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 246 ms
54,308 KB
testcase_01 AC 248 ms
54,296 KB
testcase_02 AC 251 ms
54,432 KB
testcase_03 AC 250 ms
54,428 KB
testcase_04 AC 252 ms
54,400 KB
testcase_05 AC 254 ms
54,324 KB
testcase_06 AC 250 ms
54,220 KB
testcase_07 AC 251 ms
54,216 KB
testcase_08 AC 250 ms
54,256 KB
testcase_09 AC 252 ms
54,396 KB
testcase_10 AC 251 ms
54,240 KB
testcase_11 AC 258 ms
54,360 KB
testcase_12 AC 262 ms
54,312 KB
testcase_13 AC 248 ms
54,264 KB
testcase_14 AC 251 ms
54,328 KB
testcase_15 AC 250 ms
54,356 KB
testcase_16 AC 253 ms
54,304 KB
testcase_17 AC 244 ms
54,404 KB
testcase_18 AC 250 ms
54,340 KB
testcase_19 AC 246 ms
54,308 KB
testcase_20 AC 249 ms
54,340 KB
testcase_21 AC 252 ms
54,408 KB
testcase_22 AC 254 ms
54,236 KB
testcase_23 AC 242 ms
54,340 KB
testcase_24 AC 249 ms
54,468 KB
testcase_25 AC 250 ms
54,428 KB
testcase_26 AC 246 ms
54,464 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.io.BufferedReader
import java.io.InputStream
import java.io.InputStreamReader
import java.io.PrintWriter
import java.util.*

fun PrintWriter.solve(sc: FastScanner) {
    val a = sc.nextInt()
    val b = sc.nextInt()
    val c = sc.nextInt()
    val d = sc.nextInt()
    println(if (a < b && c > d) "YES" else "NO")
}

fun main() {
    val writer = PrintWriter(System.out, false)
    writer.solve(FastScanner(System.`in`))
    writer.flush()
}

class FastScanner(s: InputStream) {
    private var st = StringTokenizer("")
    private val br = BufferedReader(InputStreamReader(s))

    fun next(): String {
        while (!st.hasMoreTokens()) st = StringTokenizer(br.readLine())

        return st.nextToken()
    }

    fun nextInt() = next().toInt()
    fun nextLong() = next().toLong()
    fun nextLine() = br.readLine()
    fun nextDouble() = next().toDouble()
    fun ready() = br.ready()
}
0