結果
| 問題 |
No.1032 数数え
|
| ユーザー |
👑 |
| 提出日時 | 2021-12-13 00:01:24 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 316 bytes |
| コンパイル時間 | 560 ms |
| コンパイル使用メモリ | 69,276 KB |
| 実行使用メモリ | 6,944 KB |
| 最終ジャッジ日時 | 2024-07-21 13:25:02 |
| 合計ジャッジ時間 | 2,372 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 8 WA * 2 |
ソースコード
#include <iostream>
#include <vector>
using namespace std;
int main(){
int n,k;cin>>n>>k;
vector<int> A(n);
for(int i = 0; n > i; i++){
int t;cin>>t;
if(t <= k){
A[t-1]++;
}
}
for(int i = 0; k > i; i++){
cout << i+1 << " " << A[i] << endl;
}
}