結果
| 問題 |
No.446 ゆきこーだーの雨と雪 (1)
|
| ユーザー |
|
| 提出日時 | 2016-12-30 16:11:23 |
| 言語 | Scala(Beta) (3.6.2) |
| 結果 |
AC
|
| 実行時間 | 859 ms / 2,000 ms |
| コード長 | 393 bytes |
| コンパイル時間 | 7,426 ms |
| コンパイル使用メモリ | 242,964 KB |
| 実行使用メモリ | 62,716 KB |
| 最終ジャッジ日時 | 2024-06-29 22:11:23 |
| 合計ジャッジ時間 | 23,262 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 4 |
| other | AC * 13 |
ソースコード
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")
}
}