結果
問題 | No.1380 Borderline |
ユーザー |
|
提出日時 | 2021-02-07 20:39:16 |
言語 | Fortran (gFortran 14.2.0) |
結果 |
AC
|
実行時間 | 2 ms / 2,000 ms |
コード長 | 331 bytes |
コンパイル時間 | 517 ms |
コンパイル使用メモリ | 32,640 KB |
実行使用メモリ | 5,376 KB |
最終ジャッジ日時 | 2024-07-05 17:02:04 |
合計ジャッジ時間 | 1,569 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 4 |
other | AC * 41 |
ソースコード
program mainimplicit noneinteger::N,K,ans=0,ref,i,jinteger,allocatable::P(:)read*,N,Kallocate(P(N))read*,Pdo i=minval(P)-1,maxval(P)+1ref=0do j=1,Nif(P(j)>=i)ref=ref+1end doif(ref<=K)ans=max(ans,ref)end doprint'(i0)',ansend program main