結果
| 問題 | No.446 ゆきこーだーの雨と雪 (1) |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2016-12-30 16:11:23 |
| 言語 | Scala(Beta) (3.10.0 + ACL) |
| 結果 |
AC
不安定
|
| 実行時間 | 236 ms / 2,000 ms |
| + 526µs | |
| コード長 | 393 bytes |
| 記録 | |
| コンパイル時間 | 9,368 ms |
| コンパイル使用メモリ | 269,728 KB |
| 実行使用メモリ | 51,808 KB |
| 最終ジャッジ日時 | 2026-10-11 21:19:58 |
| 合計ジャッジ時間 | 14,967 ms |
|
ジャッジサーバーID (参考情報) |
judge1_1 / judge3_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 4 |
| other | AC * 14 |
ソースコード
import scala.io.StdIn.readLine
import scala.util.matching.Regex
object RainSnow446 {
def main(args:Array[String]): Unit ={
def isNumContain(str:String) =
str.matches("""^[1-9]+[0-9]*|0""")
val a = readLine()
val b = readLine()
if(isNumContain(a) && isNumContain(b) && (a.toInt <= 12345) && (b.toInt <= 12345))
println("OK")
else
println("NG")
}
}