| 提出番号 | 996 |
|---|---|
| 提出者 | ndifix |
| 言語 | C++ |
| 提出日時 | 2017-08-04 11:26:31 |
| 問題名 | (26)たくさんの大きな栗の木の下で |
| 結果 | AC |
| 点数 | 100% |
| テストケース | 結果 | 得点 | 実行時間 | メモリ使用量 |
|---|---|---|---|---|
| 1 | AC | 100% | 39ms | 7632KB |
| 2 | AC | 100% | 40ms | 8320KB |
| 3 | AC | 100% | 2ms | 7664KB |
| 4 | AC | 100% | 44ms | 7712KB |
| 5 | AC | 100% | 43ms | 7616KB |
#include <iostream>
using namespace std;
int main(){
int o, k, n;
cin >> o >> k >> n;
int h[n];
for(int i=0; i<n; i++) cin >> h[i];
int ans=0;
int t;
if(o>k) t=o;
else t=k;
for(int i=0; i<n; i++){
if(h[i]>t) ans+=1;
}
cout << ans << endl;
return 0;
}