problemscpp
A collection of my answers to algorithm problems in c++.
静态 Public 成员函数 | 所有成员列表
luogu::P1554类 参考

洛谷 P1554 梦中的统计 更多...

#include <luogu.h>

静态 Public 成员函数

static int main (istream &cin, ostream &cout)
 

详细描述

洛谷 P1554 梦中的统计

在文件 luogu.h425 行定义.

成员函数说明

◆ main()

int luogu::P1554::main ( istream &  cin,
ostream &  cout 
)
static

在文件 luogu.cpp1391 行定义.

1391 {
1392 int nums[10] = {};
1393 int m;
1394 int n;
1395 cin >> m >> n;
1396 auto ss = stringstream();
1397 for(int i = m; i <= n; i++) {
1398 ss << i;
1399 }
1400 char ch;
1401 while(ss >> ch) {
1402 nums[ch - '0']++;
1403 }
1404 for(int i = 0; i < 10; i++) {
1405 cout << nums[i] << " ";
1406 }
1407 return 0;
1408 }

被这些函数引用 luogu::TEST().


该类的文档由以下文件生成: