結果

問題 No.446 ゆきこーだーの雨と雪 (1)
ユーザー BurdenBurden
提出日時 2016-12-30 15:32:37
言語 Scala(Beta)
(3.4.0)
結果
WA  
実行時間 -
コード長 387 bytes
コンパイル時間 7,416 ms
コンパイル使用メモリ 239,332 KB
実行使用メモリ 61,792 KB
最終ジャッジ日時 2023-09-12 09:24:38
合計ジャッジ時間 23,816 ms
ジャッジサーバーID
(参考情報)
judge12 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 874 ms
61,320 KB
testcase_01 AC 875 ms
61,440 KB
testcase_02 AC 877 ms
61,280 KB
testcase_03 WA -
testcase_04 AC 887 ms
61,724 KB
testcase_05 AC 887 ms
61,464 KB
testcase_06 AC 886 ms
61,452 KB
testcase_07 AC 887 ms
61,580 KB
testcase_08 AC 884 ms
61,424 KB
testcase_09 AC 888 ms
61,384 KB
testcase_10 AC 884 ms
61,320 KB
testcase_11 AC 886 ms
61,296 KB
testcase_12 WA -
testcase_13 WA -
testcase_14 WA -
testcase_15 WA -
testcase_16 WA -
権限があれば一括ダウンロードができます

ソースコード

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