首页 > 学院 > 开发设计 > 正文

1006 Sign In and Sign Out (25)

2019-11-08 20:11:04
字体:
来源:转载
供稿:网友
#include<iostream>using namespace std;int main(){ int N; int a[5] = {0}; cin >> N; while (N--) { int temp; cin >> temp; a[temp % 5]++; } if (a[0] == 0) cout << "N"; else cout << a[0]; for (int t = 1;t < 5;t++) if (a[t] == 0) cout << " N"; else cout << " " << a[t]; cout << endl;}
发表评论 共有条评论
用户名: 密码:
验证码: 匿名发表