結果
問題 |
No.467 隠されていたゲーム
|
ユーザー |
![]() |
提出日時 | 2017-01-29 02:08:18 |
言語 | Fortran (gFortran 14.2.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 448 bytes |
コンパイル時間 | 1,288 ms |
コンパイル使用メモリ | 32,000 KB |
実行使用メモリ | 6,820 KB |
最終ジャッジ日時 | 2024-12-23 22:35:34 |
合計ジャッジ時間 | 1,253 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 23 WA * 1 |
ソースコード
program main implicit none integer::N integer*8,allocatable::d(:) integer::x,y,maxd,maxxy,count read *,n allocate(d(n)) read *,d read *,x,y x = abs(x) y = abs(y) maxd = MAXVAL(d) maxxy= MAX(x,y) count = maxxy/maxd if(ANY(maxxy.eq.d)) then print '(i0)', 1 else if(2*maxd.ge.maxxy) then print '(i0)', 2 else count = (maxxy - 2*maxd + maxd - 1)/maxd print '(i0)', count + 2 end if end program main