結果

問題 No.1591 Two Digits
ユーザー 👑 箱星箱星
提出日時 2021-07-09 21:21:33
言語 Kotlin
(1.9.23)
結果
AC  
実行時間 274 ms / 1,000 ms
コード長 631 bytes
コンパイル時間 12,212 ms
コンパイル使用メモリ 415,068 KB
実行使用メモリ 50,616 KB
最終ジャッジ日時 2023-09-14 07:18:39
合計ジャッジ時間 19,012 ms
ジャッジサーバーID
(参考情報)
judge12 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 274 ms
50,340 KB
testcase_01 AC 270 ms
50,448 KB
testcase_02 AC 269 ms
50,392 KB
testcase_03 AC 272 ms
50,352 KB
testcase_04 AC 266 ms
50,428 KB
testcase_05 AC 270 ms
50,408 KB
testcase_06 AC 269 ms
50,272 KB
testcase_07 AC 269 ms
50,320 KB
testcase_08 AC 269 ms
50,232 KB
testcase_09 AC 267 ms
50,324 KB
testcase_10 AC 268 ms
50,348 KB
testcase_11 AC 271 ms
50,252 KB
testcase_12 AC 271 ms
50,344 KB
testcase_13 AC 270 ms
50,348 KB
testcase_14 AC 269 ms
50,516 KB
testcase_15 AC 272 ms
50,236 KB
testcase_16 AC 267 ms
50,288 KB
testcase_17 AC 267 ms
50,376 KB
testcase_18 AC 267 ms
50,616 KB
testcase_19 AC 268 ms
50,348 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.io.PrintWriter
import java.util.*
import kotlin.math.*

fun PrintWriter.solve() {
    val n = nextInt()
    println(if (n in 10..99) "Yes" else "No")
}

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

// region Scanner
private var st = StringTokenizer("")
private val br = System.`in`.bufferedReader()

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()
// endregion
0