結果

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

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 866 ms
61,240 KB
testcase_01 AC 878 ms
61,384 KB
testcase_02 AC 860 ms
61,208 KB
testcase_03 AC 865 ms
61,584 KB
testcase_04 AC 865 ms
61,320 KB
testcase_05 AC 866 ms
61,176 KB
testcase_06 WA -
testcase_07 AC 870 ms
61,396 KB
testcase_08 WA -
testcase_09 WA -
testcase_10 AC 866 ms
61,252 KB
testcase_11 AC 860 ms
61,224 KB
testcase_12 WA -
testcase_13 WA -
testcase_14 AC 869 ms
61,404 KB
testcase_15 WA -
testcase_16 AC 869 ms
61,360 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("""[0-9]+""")
      
    val a = readLine()
    val b = readLine()
    if(isNumContain(a+b) && (a.toInt < b.toInt))
      println("OK")
    else
      println("NG")
  }
}
0