結果

問題 No.652 E869120 and TimeZone
ユーザー 💕💖💞💕💖💞
提出日時 2018-03-06 23:46:56
言語 Kotlin
(1.9.23)
結果
WA  
実行時間 -
コード長 519 bytes
コンパイル時間 11,714 ms
コンパイル使用メモリ 430,576 KB
実行使用メモリ 57,116 KB
最終ジャッジ日時 2024-04-30 17:03:16
合計ジャッジ時間 24,492 ms
ジャッジサーバーID
(参考情報)
judge3 / judge2
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 334 ms
56,812 KB
testcase_01 AC 322 ms
56,872 KB
testcase_02 AC 328 ms
56,852 KB
testcase_03 AC 327 ms
56,804 KB
testcase_04 WA -
testcase_05 AC 327 ms
56,908 KB
testcase_06 AC 326 ms
56,900 KB
testcase_07 AC 328 ms
56,892 KB
testcase_08 AC 325 ms
56,904 KB
testcase_09 AC 326 ms
56,952 KB
testcase_10 AC 325 ms
56,888 KB
testcase_11 AC 313 ms
56,884 KB
testcase_12 AC 326 ms
56,828 KB
testcase_13 WA -
testcase_14 AC 315 ms
56,960 KB
testcase_15 AC 328 ms
56,808 KB
testcase_16 AC 332 ms
56,900 KB
testcase_17 AC 320 ms
56,864 KB
testcase_18 AC 327 ms
56,920 KB
testcase_19 AC 342 ms
56,944 KB
testcase_20 AC 328 ms
56,960 KB
testcase_21 AC 318 ms
56,856 KB
testcase_22 AC 314 ms
56,980 KB
testcase_23 AC 327 ms
56,804 KB
testcase_24 AC 333 ms
56,920 KB
testcase_25 AC 315 ms
56,840 KB
testcase_26 AC 318 ms
56,996 KB
testcase_27 AC 330 ms
56,904 KB
testcase_28 AC 329 ms
56,804 KB
testcase_29 AC 323 ms
56,964 KB
testcase_30 AC 326 ms
56,960 KB
testcase_31 AC 334 ms
56,916 KB
testcase_32 AC 317 ms
56,876 KB
testcase_33 AC 334 ms
56,944 KB
testcase_34 AC 321 ms
56,952 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Main.kt:1:10: warning: parameter 'args' is never used
fun main(args:Array<String>) {
         ^

ソースコード

diff #

fun main(args:Array<String>) {
  val inputs = readLine()!!.split(" ")
  val hour = inputs[0].toInt()
  val min = inputs[1].toInt()
  val delta = 9.0 - inputs[2].replace("UTC", "").toDouble()

  val base_min = hour*60 + min

  val delta_min = delta * 60

  val next_mins = (base_min - delta_min).toInt() + 24*60

  val next_hour = next_mins  / 60 % 24
  val next_min  = next_mins  % 60
  //println("${hour} ${min} ${delta}")
  println("${next_hour.toString().padStart(2, '0')}:${next_min.toString().padStart(2, '0')}")
}
0