結果

問題 No.525 二度寝の季節
ユーザー arbtarbt
提出日時 2017-09-17 13:46:16
言語 Kotlin
(1.9.23)
結果
WA  
実行時間 -
コード長 574 bytes
コンパイル時間 11,449 ms
コンパイル使用メモリ 434,672 KB
実行使用メモリ 55,564 KB
最終ジャッジ日時 2024-04-30 16:08:22
合計ジャッジ時間 24,466 ms
ジャッジサーバーID
(参考情報)
judge1 / judge2
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 AC 334 ms
55,164 KB
testcase_02 AC 336 ms
55,436 KB
testcase_03 WA -
testcase_04 WA -
testcase_05 WA -
testcase_06 WA -
testcase_07 WA -
testcase_08 WA -
testcase_09 WA -
testcase_10 WA -
testcase_11 WA -
testcase_12 WA -
testcase_13 WA -
testcase_14 WA -
testcase_15 WA -
testcase_16 WA -
testcase_17 WA -
testcase_18 WA -
testcase_19 WA -
testcase_20 WA -
testcase_21 WA -
testcase_22 WA -
testcase_23 WA -
testcase_24 AC 334 ms
55,156 KB
testcase_25 WA -
testcase_26 WA -
testcase_27 AC 334 ms
55,296 KB
testcase_28 WA -
testcase_29 WA -
testcase_30 WA -
testcase_31 WA -
testcase_32 AC 336 ms
55,256 KB
testcase_33 WA -
testcase_34 AC 336 ms
55,268 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Main.kt:21: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 + 1) % 24
    
    System.out.printf("%02d",new_hh)
    print(":")
    System.out.printf("%02d",new_mm)
}

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