結果

問題 No.722 100×100=1000
ユーザー 💕💖💞💕💖💞
提出日時 2018-08-04 11:50:17
言語 Kotlin
(1.9.23)
結果
WA  
実行時間 -
コード長 300 bytes
コンパイル時間 12,362 ms
コンパイル使用メモリ 432,276 KB
実行使用メモリ 57,152 KB
最終ジャッジ日時 2024-04-20 15:09:26
合計ジャッジ時間 22,782 ms
ジャッジサーバーID
(参考情報)
judge4 / judge1
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 293 ms
56,932 KB
testcase_01 AC 289 ms
56,984 KB
testcase_02 AC 296 ms
56,936 KB
testcase_03 WA -
testcase_04 AC 297 ms
56,868 KB
testcase_05 AC 299 ms
56,792 KB
testcase_06 AC 305 ms
56,868 KB
testcase_07 AC 302 ms
56,796 KB
testcase_08 AC 298 ms
56,776 KB
testcase_09 AC 298 ms
56,808 KB
testcase_10 AC 301 ms
57,044 KB
testcase_11 AC 302 ms
56,784 KB
testcase_12 AC 298 ms
56,896 KB
testcase_13 AC 297 ms
56,992 KB
testcase_14 AC 296 ms
57,152 KB
testcase_15 AC 300 ms
57,012 KB
testcase_16 AC 295 ms
56,972 KB
testcase_17 AC 300 ms
56,816 KB
testcase_18 AC 298 ms
56,868 KB
testcase_19 WA -
testcase_20 WA -
testcase_21 AC 291 ms
56,980 KB
testcase_22 AC 293 ms
56,972 KB
testcase_23 AC 307 ms
56,912 KB
testcase_24 AC 298 ms
56,900 KB
testcase_25 AC 298 ms
56,844 KB
testcase_26 AC 303 ms
56,860 KB
testcase_27 WA -
testcase_28 AC 297 ms
56,812 KB
testcase_29 AC 295 ms
57,040 KB
testcase_30 AC 296 ms
56,848 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
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%100L == 0L && b%100L == 0L && a > 0 && b > 0) -> (a/10L)*b
    else -> {
      val r = a*b
      if( -99999999 <= r && r <= 99999999 )
        r
      else
        "E"
    }
  }.run(::println)
}
0