結果
| 問題 | No.586 ダブルブッキング |
| コンテスト | |
| ユーザー |
BQZet
|
| 提出日時 | 2017-11-23 00:12:55 |
| 言語 | Fortran (gFortran 15.2.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 375 bytes |
| 記録 | |
| コンパイル時間 | 1,699 ms |
| コンパイル使用メモリ | 39,040 KB |
| 実行使用メモリ | 6,400 KB |
| 最終ジャッジ日時 | 2026-05-20 21:46:45 |
| 合計ジャッジ時間 | 2,521 ms |
|
ジャッジサーバーID (参考情報) |
judge1_1 / judge2_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | WA * 3 |
| other | WA * 5 |
ソースコード
program DoubleBooking integer,allocatable,dimension(:)::R integer::P1,P2,N,k,sum,X sum=0 write(*,*)'Please enter P1,P2' read *,P1,P2 write(*,*)'Please enter N' read *,N allocate(R(N)) write(*,*)'Please enter R(N)' read *,R(:) do X=1,999 if(count(X==R(:))<2) cycle sum=sum+count(X==R(:))-1 end do write(*,*)sum*(P1+P2) end program DoubleBooking
BQZet