結果

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

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 870 ms
61,348 KB
testcase_01 AC 879 ms
61,456 KB
testcase_02 AC 876 ms
61,456 KB
testcase_03 AC 880 ms
61,456 KB
testcase_04 AC 875 ms
61,384 KB
testcase_05 AC 886 ms
61,336 KB
testcase_06 AC 893 ms
61,356 KB
testcase_07 AC 878 ms
61,448 KB
testcase_08 AC 888 ms
61,492 KB
testcase_09 WA -
testcase_10 AC 889 ms
61,372 KB
testcase_11 AC 878 ms
61,312 KB
testcase_12 WA -
testcase_13 WA -
testcase_14 AC 880 ms
61,472 KB
testcase_15 WA -
testcase_16 AC 887 ms
61,524 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 <= 12345) && (b.toInt <= 12345) && (a.toInt < b.toInt))
      println("OK")
    else
      println("NG")
  }
}
0