結果

問題 No.446 ゆきこーだーの雨と雪 (1)
ユーザー BurdenBurden
提出日時 2016-12-30 16:05:59
言語 Scala(Beta)
(3.4.0)
結果
WA  
実行時間 -
コード長 391 bytes
コンパイル時間 7,119 ms
コンパイル使用メモリ 240,864 KB
実行使用メモリ 61,736 KB
最終ジャッジ日時 2023-09-12 09:27:12
合計ジャッジ時間 23,740 ms
ジャッジサーバーID
(参考情報)
judge15 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 880 ms
61,356 KB
testcase_01 AC 881 ms
61,344 KB
testcase_02 AC 871 ms
61,240 KB
testcase_03 WA -
testcase_04 AC 874 ms
61,396 KB
testcase_05 AC 875 ms
61,320 KB
testcase_06 WA -
testcase_07 AC 880 ms
61,352 KB
testcase_08 WA -
testcase_09 AC 878 ms
61,636 KB
testcase_10 AC 878 ms
61,364 KB
testcase_11 AC 883 ms
61,320 KB
testcase_12 WA -
testcase_13 AC 882 ms
61,324 KB
testcase_14 AC 878 ms
61,520 KB
testcase_15 AC 883 ms
61,472 KB
testcase_16 AC 878 ms
61,604 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))
      println("OK")
    else
      println("NG")
  }
}
0