結果
| 問題 | No.1591 Two Digits |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2021-07-09 21:21:33 |
| 言語 | Kotlin (2.3.10) |
| 結果 |
AC
|
| 実行時間 | 173 ms / 1,000 ms |
| コード長 | 631 bytes |
| 記録 | |
| コンパイル時間 | 7,940 ms |
| コンパイル使用メモリ | 431,792 KB |
| 実行使用メモリ | 52,840 KB |
| 最終ジャッジ日時 | 2026-03-22 17:03:34 |
| 合計ジャッジ時間 | 12,272 ms |
|
ジャッジサーバーID (参考情報) |
judge2_1 / judge1_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 17 |
ソースコード
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