結果

問題 No.296 n度寝
ユーザー concon
提出日時 2018-11-10 17:38:41
言語 Fortran
(gFortran 13.2.0)
結果
WA  
実行時間 -
コード長 353 bytes
コンパイル時間 1,267 ms
コンパイル使用メモリ 26,148 KB
実行使用メモリ 4,384 KB
最終ジャッジ日時 2023-08-16 05:40:53
合計ジャッジ時間 2,204 ms
ジャッジサーバーID
(参考情報)
judge12 / judge14
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 WA -
testcase_02 WA -
testcase_03 AC 1 ms
4,380 KB
testcase_04 AC 1 ms
4,380 KB
testcase_05 AC 1 ms
4,380 KB
testcase_06 AC 1 ms
4,376 KB
testcase_07 WA -
testcase_08 WA -
testcase_09 WA -
testcase_10 AC 1 ms
4,380 KB
testcase_11 AC 1 ms
4,376 KB
testcase_12 WA -
testcase_13 AC 1 ms
4,376 KB
testcase_14 AC 1 ms
4,380 KB
testcase_15 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

implicit none
integer(8) A,B,m
integer(8),allocatable :: x(:)
allocate (x(4))
read(*,*) (x(m),m=1,4)
B=(x(1)-1)*x(4)
select case (B)
    case(:59)
        x(3)=x(3)+B
    case(60:)
        x(2)=x(2)+(B/60)
        B=B-(B/60)*60
        x(3)=x(3)+B
end select
if (x(3)>=60) then
    x(2)=x(2)+1
    x(3)=x(3)-60
end if
write(*,*) x(2)
write(*,*) x(3)
end
0