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

洛谷 P1200 [USACO1.1]你的飞碟在这儿Your Ride Is Here 更多...

#include <luogu.h>

静态 Public 成员函数

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

详细描述

洛谷 P1200 [USACO1.1]你的飞碟在这儿Your Ride Is Here

在文件 luogu.h573 行定义.

成员函数说明

◆ main()

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

在文件 luogu.cpp2164 行定义.

2164 {
2165 string comet;
2166 string team;
2167 cin >> comet >> team;
2168 unsigned int comet_int = 1;
2169 unsigned int team_int = 1;
2170 for(const char ch: comet) {
2171 comet_int *= ch - 'A' + 1;
2172 comet_int %= 47;
2173 }
2174 for(const char ch: team) {
2175 team_int *= ch - 'A' + 1;
2176 team_int %= 47;
2177 }
2178 cout << (comet_int == team_int ? "GO" : "STAY");
2179 return 0;
2180 }

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


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