結果

問題 No.296 n度寝
ユーザー concon
提出日時 2018-11-10 17:38:41
言語 Fortran
(gFortran 13.2.0)
結果
WA  
実行時間 -
コード長 353 bytes
コンパイル時間 1,905 ms
コンパイル使用メモリ 31,104 KB
実行使用メモリ 5,376 KB
最終ジャッジ日時 2024-05-03 14:50:33
合計ジャッジ時間 2,348 ms
ジャッジサーバーID
(参考情報)
judge4 / judge2
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 WA -
testcase_02 WA -
testcase_03 AC 1 ms
5,376 KB
testcase_04 AC 1 ms
5,376 KB
testcase_05 AC 1 ms
5,376 KB
testcase_06 AC 2 ms
5,376 KB
testcase_07 WA -
testcase_08 WA -
testcase_09 WA -
testcase_10 AC 1 ms
5,376 KB
testcase_11 AC 2 ms
5,376 KB
testcase_12 WA -
testcase_13 AC 1 ms
5,376 KB
testcase_14 AC 1 ms
5,376 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