結果

問題 No.722 100×100=1000
ユーザー 💕💖💞💕💖💞
提出日時 2018-08-04 11:46:45
言語 Kotlin
(1.9.23)
結果
WA  
実行時間 -
コード長 283 bytes
コンパイル時間 14,041 ms
コンパイル使用メモリ 440,184 KB
実行使用メモリ 57,056 KB
最終ジャッジ日時 2024-04-20 15:08:54
合計ジャッジ時間 23,722 ms
ジャッジサーバーID
(参考情報)
judge4 / judge1
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 307 ms
56,952 KB
testcase_01 AC 303 ms
56,840 KB
testcase_02 AC 302 ms
56,980 KB
testcase_03 AC 307 ms
56,976 KB
testcase_04 AC 301 ms
56,992 KB
testcase_05 AC 294 ms
56,748 KB
testcase_06 AC 304 ms
56,828 KB
testcase_07 AC 298 ms
57,032 KB
testcase_08 AC 300 ms
56,864 KB
testcase_09 AC 297 ms
56,864 KB
testcase_10 WA -
testcase_11 WA -
testcase_12 AC 302 ms
57,000 KB
testcase_13 AC 301 ms
56,868 KB
testcase_14 AC 294 ms
57,056 KB
testcase_15 AC 298 ms
56,912 KB
testcase_16 AC 299 ms
56,976 KB
testcase_17 AC 293 ms
56,832 KB
testcase_18 AC 294 ms
57,016 KB
testcase_19 AC 301 ms
56,892 KB
testcase_20 AC 299 ms
56,824 KB
testcase_21 AC 302 ms
57,000 KB
testcase_22 AC 302 ms
56,916 KB
testcase_23 AC 308 ms
56,968 KB
testcase_24 AC 294 ms
56,996 KB
testcase_25 AC 296 ms
56,844 KB
testcase_26 AC 302 ms
56,932 KB
testcase_27 WA -
testcase_28 AC 304 ms
57,028 KB
testcase_29 AC 303 ms
56,784 KB
testcase_30 AC 292 ms
56,924 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/10L)*b
    else -> {
      val r = a*b
      if( -99999999 <= r && r <= 99999999 )
        r
      else
        "E"
    }
  }.run(::println)
}
0