結果

問題 No.446 ゆきこーだーの雨と雪 (1)
ユーザー BurdenBurden
提出日時 2016-12-30 16:09:55
言語 Scala(Beta)
(3.4.0)
結果
WA  
実行時間 -
コード長 393 bytes
コンパイル時間 10,534 ms
コンパイル使用メモリ 239,988 KB
実行使用メモリ 61,648 KB
最終ジャッジ日時 2023-09-12 09:28:24
合計ジャッジ時間 24,071 ms
ジャッジサーバーID
(参考情報)
judge13 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 889 ms
61,368 KB
testcase_01 AC 897 ms
61,408 KB
testcase_02 AC 893 ms
61,280 KB
testcase_03 AC 899 ms
61,424 KB
testcase_04 AC 891 ms
61,372 KB
testcase_05 AC 903 ms
61,300 KB
testcase_06 WA -
testcase_07 AC 913 ms
61,300 KB
testcase_08 WA -
testcase_09 AC 900 ms
61,248 KB
testcase_10 AC 890 ms
61,244 KB
testcase_11 AC 890 ms
61,268 KB
testcase_12 AC 892 ms
61,368 KB
testcase_13 AC 873 ms
61,372 KB
testcase_14 AC 896 ms
61,648 KB
testcase_15 AC 884 ms
61,308 KB
testcase_16 AC 884 ms
61,352 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]*|0""")
    val a = readLine()
    val b = readLine()
  
    if(isNumContain(a) && isNumContain(b) && (a.toInt <= 12345) && (a.toInt <= 12345))
      println("OK")
    else
      println("NG")
  }
}
0