結果
| 問題 |
No.1032 数数え
|
| ユーザー |
crossick_love
|
| 提出日時 | 2021-02-24 16:02:29 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
TLE
|
| 実行時間 | - |
| コード長 | 275 bytes |
| コンパイル時間 | 231 ms |
| コンパイル使用メモリ | 31,744 KB |
| 実行使用メモリ | 13,756 KB |
| 最終ジャッジ日時 | 2024-09-24 17:10:20 |
| 合計ジャッジ時間 | 4,292 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 4 TLE * 1 -- * 5 |
ソースコード
#include <stdio.h>
int main(void) {
int a,b;
int count=0;
scanf("%d %d",&a,&b);
int ar[a];
for(int i=0;i<a;i++){
scanf("%d",&ar[i]);
}
for(int k=1;k<=b;k++){
count=0;
for(int i=0;i<a;i++){
if(ar[i]==k){
count++;
}
}
printf("%d %d\n",k,count);
}
}
crossick_love