結果

問題 No.446 ゆきこーだーの雨と雪 (1)
ユーザー Burden
提出日時 2016-12-30 15:32:37
言語 Scala(Beta)
(3.6.2)
結果
WA  
実行時間 -
コード長 387 bytes
コンパイル時間 6,453 ms
コンパイル使用メモリ 243,152 KB
実行使用メモリ 64,196 KB
最終ジャッジ日時 2024-06-29 22:08:29
合計ジャッジ時間 20,760 ms
ジャッジサーバーID
(参考情報)
judge5 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3 WA * 1
other AC * 8 WA * 5
権限があれば一括ダウンロードができます

ソースコード

diff #

import scala.io.StdIn.readLine
import scala.util.matching.Regex

object RainSnow446 {
  def main(args:Array[String]): Unit ={
    def isNumContain(str:String) = str.matches("""[0-9]+""")
      
    val a = readLine()
    val b = readLine()
    if(isNumContain(a+b) && (a.toInt > 12345) && (a.toInt > 12345) && (a.toInt < b.toInt))
      println("OK")
    else
      println("NG")
  }
}
0