結果

問題 No.668 6.0*10^23
ユーザー 💕💖💞💕💖💞
提出日時 2018-04-06 21:33:42
言語 Kotlin
(1.9.23)
結果
WA  
実行時間 -
コード長 556 bytes
コンパイル時間 10,196 ms
コンパイル使用メモリ 439,100 KB
実行使用メモリ 60,796 KB
最終ジャッジ日時 2024-04-30 18:16:42
合計ジャッジ時間 28,951 ms
ジャッジサーバーID
(参考情報)
judge5 / judge2
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 AC 379 ms
60,560 KB
testcase_02 AC 347 ms
60,644 KB
testcase_03 AC 340 ms
60,468 KB
testcase_04 AC 337 ms
60,604 KB
testcase_05 AC 331 ms
60,464 KB
testcase_06 AC 334 ms
60,452 KB
testcase_07 AC 292 ms
60,372 KB
testcase_08 AC 291 ms
60,436 KB
testcase_09 AC 294 ms
60,432 KB
testcase_10 WA -
testcase_11 AC 366 ms
60,656 KB
testcase_12 AC 341 ms
60,568 KB
testcase_13 WA -
testcase_14 AC 358 ms
60,764 KB
testcase_15 WA -
testcase_16 WA -
testcase_17 WA -
testcase_18 WA -
testcase_19 AC 295 ms
57,060 KB
testcase_20 AC 350 ms
60,508 KB
testcase_21 AC 356 ms
60,712 KB
testcase_22 AC 357 ms
60,700 KB
testcase_23 AC 349 ms
60,780 KB
testcase_24 AC 328 ms
60,560 KB
testcase_25 AC 356 ms
60,572 KB
testcase_26 AC 302 ms
60,312 KB
testcase_27 AC 337 ms
60,796 KB
testcase_28 AC 358 ms
60,636 KB
testcase_29 AC 340 ms
60,584 KB
testcase_30 WA -
testcase_31 AC 338 ms
60,612 KB
testcase_32 AC 323 ms
60,572 KB
testcase_33 AC 344 ms
60,668 KB
testcase_34 AC 334 ms
60,584 KB
testcase_35 AC 336 ms
60,456 KB
testcase_36 AC 371 ms
60,788 KB
testcase_37 WA -
testcase_38 AC 340 ms
60,460 KB
testcase_39 AC 348 ms
60,736 KB
testcase_40 AC 355 ms
60,712 KB
testcase_41 AC 351 ms
60,732 KB
testcase_42 AC 336 ms
60,612 KB
testcase_43 AC 349 ms
60,612 KB
testcase_44 AC 331 ms
57,072 KB
testcase_45 WA -
testcase_46 AC 295 ms
60,460 KB
testcase_47 AC 293 ms
60,372 KB
testcase_48 AC 300 ms
60,444 KB
testcase_49 AC 263 ms
56,880 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Main.kt:1:10: warning: parameter 'args' is never used
fun main(args:Array<String>) {
         ^

ソースコード

diff #

fun main(args:Array<String>) {
  val s = readLine()!!

  var size = s.length - 1
  
  val tops = s.slice(0..2)
  if(tops == "999") {
    println("1.0*10^${size+1}")
  } else {
    val (head1, head2) = listOf( tops[0], tops[1] ).map { it.toString() }
    val tail = tops.toList().last()
    if( mutableSetOf('1', '2', '3', '4').contains( tail ) ) {
      println("${head1}.${head2}*10^${size}")
    } else {
      val (up1, up2) = (tops.slice(0..1).toInt() + 1).toString().toList().map { it.toString() }
      println("${up1}.${up2}*10^${size}")
    }
  }
}
0