結果
問題 |
No.296 n度寝
|
ユーザー |
![]() |
提出日時 | 2018-11-10 17:38:41 |
言語 | Fortran (gFortran 14.2.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 353 bytes |
コンパイル時間 | 1,638 ms |
コンパイル使用メモリ | 31,232 KB |
実行使用メモリ | 6,824 KB |
最終ジャッジ日時 | 2024-11-24 15:51:37 |
合計ジャッジ時間 | 1,888 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 8 WA * 8 |
ソースコード
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