結果

問題 No.525 二度寝の季節
ユーザー jjjj
提出日時 2017-06-09 22:25:00
言語 Fortran
(gFortran 13.2.0)
結果
WA  
(最新)
AC  
(最初)
実行時間 -
コード長 270 bytes
コンパイル時間 2,369 ms
コンパイル使用メモリ 30,348 KB
実行使用メモリ 4,348 KB
最終ジャッジ日時 2023-10-23 21:33:10
合計ジャッジ時間 3,192 ms
ジャッジサーバーID
(参考情報)
judge15 / judge11
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 AC 1 ms
4,348 KB
testcase_02 AC 1 ms
4,348 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 1 ms
4,348 KB
testcase_25 WA -
testcase_26 WA -
testcase_27 AC 1 ms
4,348 KB
testcase_28 WA -
testcase_29 WA -
testcase_30 WA -
testcase_31 WA -
testcase_32 AC 1 ms
4,348 KB
testcase_33 WA -
testcase_34 AC 1 ms
4,348 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Main.f90:6:24:

    6 |   read(time(1:2),'(i2)'),h
      |                        1
Warning: Legacy Extension: Comma before i/o item list at (1)
Main.f90:7:24:

    7 |   read(time(4:5),'(i2)'),m
      |                        1
Warning: Legacy Extension: Comma before i/o item list at (1)

ソースコード

diff #

program main
  implicit none
  character*5::time
  integer::h,m,carry
  read *,time
  read(time(1:2),'(i2)'),h
  read(time(4:5),'(i2)'),m

  if(m.ge.55) then
     carry = 1
  end if
  m = MOD(m+5,60)
  h = MOD(h+carry,24)
  print '(i2.2,":",i2.2)',h,m
end program main

0