結果

問題 No.668 6.0*10^23
ユーザー 💕💖💞💕💖💞
提出日時 2018-04-06 21:36:46
言語 Kotlin
(1.9.23)
結果
WA  
実行時間 -
コード長 933 bytes
コンパイル時間 9,928 ms
コンパイル使用メモリ 433,200 KB
実行使用メモリ 60,844 KB
最終ジャッジ日時 2024-04-30 18:18:53
合計ジャッジ時間 28,119 ms
ジャッジサーバーID
(参考情報)
judge5 / judge3
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 AC 353 ms
60,708 KB
testcase_02 AC 352 ms
60,672 KB
testcase_03 AC 339 ms
60,576 KB
testcase_04 AC 336 ms
60,572 KB
testcase_05 AC 332 ms
60,600 KB
testcase_06 AC 339 ms
60,596 KB
testcase_07 AC 293 ms
60,284 KB
testcase_08 AC 294 ms
60,356 KB
testcase_09 AC 294 ms
60,392 KB
testcase_10 WA -
testcase_11 AC 361 ms
60,532 KB
testcase_12 AC 340 ms
60,556 KB
testcase_13 WA -
testcase_14 AC 347 ms
60,804 KB
testcase_15 WA -
testcase_16 WA -
testcase_17 WA -
testcase_18 WA -
testcase_19 AC 293 ms
57,144 KB
testcase_20 AC 340 ms
60,620 KB
testcase_21 AC 338 ms
60,520 KB
testcase_22 AC 353 ms
60,664 KB
testcase_23 AC 355 ms
60,632 KB
testcase_24 AC 336 ms
60,572 KB
testcase_25 AC 375 ms
60,828 KB
testcase_26 AC 317 ms
60,332 KB
testcase_27 AC 368 ms
60,648 KB
testcase_28 AC 381 ms
60,636 KB
testcase_29 AC 357 ms
60,632 KB
testcase_30 WA -
testcase_31 AC 330 ms
60,604 KB
testcase_32 AC 317 ms
60,596 KB
testcase_33 AC 351 ms
60,728 KB
testcase_34 AC 337 ms
60,588 KB
testcase_35 AC 335 ms
60,460 KB
testcase_36 AC 347 ms
60,628 KB
testcase_37 WA -
testcase_38 AC 340 ms
60,612 KB
testcase_39 AC 347 ms
60,636 KB
testcase_40 AC 362 ms
60,536 KB
testcase_41 AC 349 ms
60,784 KB
testcase_42 AC 341 ms
60,564 KB
testcase_43 AC 378 ms
60,592 KB
testcase_44 AC 325 ms
57,140 KB
testcase_45 WA -
testcase_46 AC 305 ms
60,392 KB
testcase_47 AC 304 ms
60,384 KB
testcase_48 AC 291 ms
60,396 KB
testcase_49 AC 263 ms
56,836 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