結果

問題 No.446 ゆきこーだーの雨と雪 (1)
ユーザー BurdenBurden
提出日時 2016-12-30 16:04:25
言語 Scala(Beta)
(3.4.0)
結果
WA  
実行時間 -
コード長 413 bytes
コンパイル時間 6,839 ms
コンパイル使用メモリ 241,052 KB
実行使用メモリ 61,756 KB
最終ジャッジ日時 2023-09-12 09:25:13
合計ジャッジ時間 23,300 ms
ジャッジサーバーID
(参考情報)
judge15 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 864 ms
61,756 KB
testcase_01 AC 868 ms
61,280 KB
testcase_02 AC 871 ms
61,436 KB
testcase_03 WA -
testcase_04 AC 869 ms
61,396 KB
testcase_05 AC 875 ms
61,472 KB
testcase_06 WA -
testcase_07 AC 875 ms
61,292 KB
testcase_08 WA -
testcase_09 AC 875 ms
61,296 KB
testcase_10 AC 884 ms
61,296 KB
testcase_11 AC 879 ms
61,356 KB
testcase_12 WA -
testcase_13 WA -
testcase_14 AC 880 ms
61,468 KB
testcase_15 WA -
testcase_16 AC 880 ms
61,504 KB
権限があれば一括ダウンロードができます

ソースコード

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("""^[1-9]+[0-9]*""")
    val a = readLine()
    val b = readLine()
  
    if(isNumContain(a) && isNumContain(b) && (a.toInt <= 12345) && (a.toInt <= 12345) && (a.toInt < b.toInt))
      println("OK")
    else
      println("NG")
  }
}
0