-
Bio
#include <bits/stdc++.h> using namespace std; int t[1005]; int main() { int n,d,a; cin >>n>>d; for (int i=1;i<=d;i++) { cin>>a; t[a]+= i; }
for (int j=0;j<n;j++) { cout << t[j]<<" "; } return 0;}
-
Accepted Problems
-
Recent Activities
Problem Tags
- 一本通编程启蒙
- 38
- 四年级题目-双重循环练习题
- 4
- 一维数组
- 3
- 数学函数
- 3
- for循环
- 2
- sort排序
- 2
- 字符串
- 2
- 模拟
- 2
- NOIp 普及组
- 2
- 2014
- 1
- 2018
- 1
- while循环
- 1
- 循环嵌套
- 1
- 第8课 循环嵌套
- 1
- 202210月测试
- 1
- NOIP全国联赛普及组-2011年NOIP全国联赛普及组
- 1
- 搜索
- 1
- 枚举
- 1
- python
- 1
- GESPC++ 二级
- 1