AcWing 1789. 牛为什么过马路 II
更多...
#include <acwing.h>
|
static int | main (istream &cin, ostream &cout) |
|
AcWing 1789. 牛为什么过马路 II
在文件 acwing.h 第 932 行定义.
◆ main()
int acwing::acwing1789::main |
( |
istream & |
cin, |
|
|
ostream & |
cout |
|
) |
| |
|
static |
在文件 acwing.cpp 第 2814 行定义.
2817 auto poses = vector(26, vector<int>());
2818 for(
int i = 0; i < 52; i++) {
2822 poses[ch -
'A'].push_back(i);
2824 for(
auto pos: poses) {
2825 auto um = unordered_map<int, int>();
2826 for(
int i = pos[0] + 1; i < pos[1]; i++) {
2827 if(!um.contains(str[i])) {
2828 um.insert(pair(str[i], 1));
2833 for(
const auto p: um) {
2838 um = unordered_map<int, int>();
2839 for(
int i = pos[1] + 1; i < pos[0] + 52; i++) {
2840 if(!um.contains(str[i % 52])) {
2841 um.insert(pair(str[i % 52], 1));
2843 um[str[i % 52]] = 0;
2846 for(
const auto p: um) {
被这些函数引用 acwing::TEST().
该类的文档由以下文件生成: