社区讨论
全TLE,求佬调
P1554[USACO06DEC] 梦中的统计 Dream Counting B参与者 2已保存回复 2
讨论操作
快速查看讨论及其快照的属性,并进行相关操作。
- 当前回复
- 2 条
- 当前快照
- 1 份
- 快照标识符
- @mloxauju
- 此快照首次捕获于
- 2026/02/16 16:39 3 天前
- 此快照最后确认于
- 2026/02/16 23:57 3 天前
CPP
//P1554 [USACO06DEC] 梦中的统计 Dream Counting B
#include<bits/stdc++.h>
using namespace std;
int a[10];
int main (){
int n,m;
cin >> n >> m;
for(int i=n;i<=m;i++){
a[i%10]++;
i = i/10;
}
for(int i=0;i<10;i++){
cout << a[i] << " ";
}
return 0;
}
回复
共 2 条回复,欢迎继续交流。
正在加载回复...