結果

問題 No.722 100×100=1000
ユーザー 💕💖💞💕💖💞
提出日時 2018-08-04 11:33:16
言語 Kotlin
(1.9.23)
結果
WA  
実行時間 -
コード長 280 bytes
コンパイル時間 12,459 ms
コンパイル使用メモリ 437,732 KB
実行使用メモリ 52,052 KB
最終ジャッジ日時 2024-04-20 15:07:00
合計ジャッジ時間 23,151 ms
ジャッジサーバーID
(参考情報)
judge1 / judge5
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 301 ms
51,744 KB
testcase_01 AC 298 ms
51,672 KB
testcase_02 AC 304 ms
51,644 KB
testcase_03 AC 305 ms
51,612 KB
testcase_04 AC 299 ms
51,800 KB
testcase_05 WA -
testcase_06 WA -
testcase_07 AC 297 ms
51,968 KB
testcase_08 AC 300 ms
51,576 KB
testcase_09 AC 306 ms
52,000 KB
testcase_10 WA -
testcase_11 WA -
testcase_12 AC 309 ms
51,992 KB
testcase_13 AC 296 ms
51,596 KB
testcase_14 AC 306 ms
51,660 KB
testcase_15 AC 296 ms
51,804 KB
testcase_16 AC 295 ms
51,772 KB
testcase_17 AC 301 ms
52,012 KB
testcase_18 AC 307 ms
51,568 KB
testcase_19 AC 302 ms
51,936 KB
testcase_20 AC 303 ms
52,052 KB
testcase_21 AC 303 ms
51,696 KB
testcase_22 AC 301 ms
51,692 KB
testcase_23 AC 298 ms
51,968 KB
testcase_24 WA -
testcase_25 AC 301 ms
51,900 KB
testcase_26 AC 302 ms
52,052 KB
testcase_27 WA -
testcase_28 AC 319 ms
51,792 KB
testcase_29 AC 301 ms
51,992 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
    else -> {
      val r = a*b
      if( -99999999 <= r && r <= 99999999 )
        r
      else
        "E"
    }
  }.run(::println)
}
0