結果
| 問題 |
No.586 ダブルブッキング
|
| コンテスト | |
| ユーザー |
BQZet
|
| 提出日時 | 2017-11-23 00:12:55 |
| 言語 | Fortran (gFortran 14.2.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 375 bytes |
| コンパイル時間 | 1,848 ms |
| コンパイル使用メモリ | 32,380 KB |
| 実行使用メモリ | 5,248 KB |
| 最終ジャッジ日時 | 2024-11-26 11:29:14 |
| 合計ジャッジ時間 | 842 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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