結果

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

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 279 ms
56,788 KB
testcase_01 AC 275 ms
57,004 KB
testcase_02 AC 272 ms
56,788 KB
testcase_03 AC 276 ms
56,884 KB
testcase_04 AC 272 ms
56,836 KB
testcase_05 WA -
testcase_06 WA -
testcase_07 AC 271 ms
56,992 KB
testcase_08 AC 277 ms
56,948 KB
testcase_09 AC 276 ms
56,992 KB
testcase_10 WA -
testcase_11 WA -
testcase_12 AC 275 ms
56,952 KB
testcase_13 AC 276 ms
57,080 KB
testcase_14 AC 272 ms
56,816 KB
testcase_15 AC 271 ms
56,788 KB
testcase_16 AC 273 ms
57,088 KB
testcase_17 AC 276 ms
56,932 KB
testcase_18 AC 285 ms
56,948 KB
testcase_19 AC 272 ms
56,864 KB
testcase_20 AC 276 ms
57,000 KB
testcase_21 AC 275 ms
56,820 KB
testcase_22 AC 274 ms
56,876 KB
testcase_23 AC 276 ms
57,024 KB
testcase_24 WA -
testcase_25 AC 266 ms
56,880 KB
testcase_26 AC 273 ms
57,012 KB
testcase_27 WA -
testcase_28 AC 285 ms
57,036 KB
testcase_29 AC 272 ms
56,888 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