#include<iostream> int a[1000001]; using namespace std; int main(){ int n; cin>>n; for(int i=0;i<n;i++){ int temp; cin>>temp; a[temp]++; } for(int i=0;i<1000001;i++){ if(a[i]!=0) cout<<i<<" "<<a[i]<<endl; } return 0; }
0.0分
0 人评分
A+B for Input-Output Practice (II) (C语言代码)浏览:993 |
模拟计算器 (C++代码)浏览:803 |
数字游戏 (C++代码)浏览:1180 |
核桃的数量 (C语言代码)浏览:871 |
整除问题 (C语言代码)浏览:523 |
字符逆序 (C语言代码)浏览:507 |
A+B for Input-Output Practice (IV) (C语言代码)浏览:467 |
简单的a+b (C语言代码)浏览:462 |
【出圈】 (C++代码)简单循环浏览:630 |
C语言程序设计教程(第三版)课后习题1.5 (C语言代码)浏览:451 |