洛谷 P1200 [USACO1.1]你的飞碟在这儿Your Ride Is Here
更多...
#include <luogu.h>
|
static int | main (istream &cin, ostream &cout) |
|
洛谷 P1200 [USACO1.1]你的飞碟在这儿Your Ride Is Here
在文件 luogu.h 第 573 行定义.
◆ main()
int luogu::P1200::main |
( |
istream & | cin, |
|
|
ostream & | cout ) |
|
static |
在文件 luogu.cpp 第 2164 行定义.
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() , 以及 luogu::TEST().
该类的文档由以下文件生成: