結果

問題 No.722 100×100=1000
ユーザー 💕💖💞💕💖💞
提出日時 2018-08-04 11:36:43
言語 Kotlin
(1.9.23)
結果
WA  
実行時間 -
コード長 304 bytes
コンパイル時間 12,362 ms
コンパイル使用メモリ 438,656 KB
実行使用メモリ 51,972 KB
最終ジャッジ日時 2024-04-20 15:07:35
合計ジャッジ時間 22,148 ms
ジャッジサーバーID
(参考情報)
judge3 / judge5
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 276 ms
51,848 KB
testcase_01 AC 279 ms
51,680 KB
testcase_02 AC 272 ms
51,744 KB
testcase_03 WA -
testcase_04 AC 275 ms
51,648 KB
testcase_05 WA -
testcase_06 WA -
testcase_07 AC 269 ms
51,764 KB
testcase_08 AC 286 ms
51,636 KB
testcase_09 AC 285 ms
51,744 KB
testcase_10 AC 278 ms
51,836 KB
testcase_11 AC 280 ms
51,848 KB
testcase_12 AC 285 ms
51,692 KB
testcase_13 AC 278 ms
51,900 KB
testcase_14 AC 279 ms
51,864 KB
testcase_15 AC 275 ms
51,744 KB
testcase_16 AC 285 ms
51,948 KB
testcase_17 AC 268 ms
51,780 KB
testcase_18 AC 272 ms
51,652 KB
testcase_19 WA -
testcase_20 WA -
testcase_21 AC 274 ms
51,924 KB
testcase_22 AC 279 ms
51,756 KB
testcase_23 AC 281 ms
51,748 KB
testcase_24 WA -
testcase_25 AC 306 ms
51,796 KB
testcase_26 AC 281 ms
51,928 KB
testcase_27 WA -
testcase_28 AC 281 ms
51,856 KB
testcase_29 AC 285 ms
51,680 KB
testcase_30 WA -
権限があれば一括ダウンロードができます
コンパイルメッセージ
Main.kt:1:10: warning: parameter 'args' is never used
fun main(args:Array<String>) {
         ^

ソースコード

diff #

fun main(args:Array<String>) {
  val (a,b) = readLine()!!.split(" ").map(String::toLong)

  when {
    (a%10L == 0L && b%10L == 0L && a >= 10L && b >= 10L) -> (a/10L)*b
    else -> {
      val r = a*b
      if( -99999999 <= r && r <= 99999999 )
        r
      else
        "E"
    }
  }.run(::println)
}
0