結果

問題 No.525 二度寝の季節
ユーザー arbtarbt
提出日時 2017-09-17 13:52:16
言語 Kotlin
(1.9.23)
結果
AC  
実行時間 342 ms / 1,000 ms
コード長 594 bytes
コンパイル時間 11,781 ms
コンパイル使用メモリ 426,016 KB
実行使用メモリ 55,544 KB
最終ジャッジ日時 2024-04-30 16:09:12
合計ジャッジ時間 24,873 ms
ジャッジサーバーID
(参考情報)
judge1 / judge2
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 338 ms
55,228 KB
testcase_01 AC 333 ms
55,192 KB
testcase_02 AC 334 ms
55,160 KB
testcase_03 AC 337 ms
55,180 KB
testcase_04 AC 340 ms
55,200 KB
testcase_05 AC 336 ms
55,380 KB
testcase_06 AC 340 ms
55,188 KB
testcase_07 AC 341 ms
55,264 KB
testcase_08 AC 335 ms
55,208 KB
testcase_09 AC 333 ms
55,288 KB
testcase_10 AC 330 ms
55,344 KB
testcase_11 AC 333 ms
55,296 KB
testcase_12 AC 329 ms
55,272 KB
testcase_13 AC 337 ms
55,276 KB
testcase_14 AC 334 ms
55,324 KB
testcase_15 AC 342 ms
55,288 KB
testcase_16 AC 335 ms
55,424 KB
testcase_17 AC 338 ms
55,544 KB
testcase_18 AC 337 ms
55,292 KB
testcase_19 AC 339 ms
55,252 KB
testcase_20 AC 341 ms
55,236 KB
testcase_21 AC 338 ms
55,272 KB
testcase_22 AC 337 ms
55,180 KB
testcase_23 AC 339 ms
55,276 KB
testcase_24 AC 331 ms
55,292 KB
testcase_25 AC 328 ms
55,256 KB
testcase_26 AC 334 ms
55,356 KB
testcase_27 AC 334 ms
55,328 KB
testcase_28 AC 332 ms
55,296 KB
testcase_29 AC 338 ms
55,520 KB
testcase_30 AC 332 ms
55,156 KB
testcase_31 AC 337 ms
55,168 KB
testcase_32 AC 332 ms
55,212 KB
testcase_33 AC 331 ms
55,252 KB
testcase_34 AC 330 ms
55,424 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Main.kt:22:11: warning: parameter 'argv' is never used
fun main( argv : Array<String> ) {
          ^

ソースコード

diff #

import java.util.Scanner

//
fun _Do() {
    
    val T = scan.next()// 1-
    
    val hh = T.substring(0, 2).toInt()
    val mm = T.substring(3, 5).toInt()
    
    val new_mm = (mm + 5) % 60
    val new_hh = (hh+(mm+5)/60) % 24
    
    System.out.printf("%02d",new_hh)
    print(":")
    System.out.printf("%02d",new_mm)
    println()
}

var scan = Scanner(System.`in`)
fun main( argv : Array<String> ) {
    _Do()
}

fun strings(N:Int):Array<String> = Array(N,{scan.next()})
fun ints(N:Int):Array<Int> = Array(N,{scan.nextInt()})
fun longs(N:Int):Array<Long> = Array(N,{scan.nextLong()})
0