心态崩了

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

# ~~ _全是stay_ ~~ 呜呜呜呜
by 宋小陀螺 @ 2020-05-04 10:34:46



by Trinitrotoluene @ 2020-05-04 10:34:51


``` while((c=getchar())!='\n') a*=c-'a'+1; while((c=getchar())!='\n') b*=c-'a'+1; ``` 搞不懂你们这些人为什么不喜欢用 scanf("%s", ),而非要用这种神奇的读入
by Trinitrotoluene @ 2020-05-04 10:37:32


@[宋小陀螺](/user/267125)
by JK_LOVER @ 2020-05-04 11:00:28


```cpp #include<bits/stdc++.h> using namespace std; char c; int a=1,b=1; int main() { while((c=getchar())!='\n') a*=c-'A'+1; while((c=getchar())!='\n') b*=c-'A'+1; a%=47; b%=47; if (a==b) cout <<"GO"<<endl; else cout <<"STAY"<<endl; // cout <<a<<b<<endl; return 0; } ```
by JK_LOVER @ 2020-05-04 11:00:44


大写。。。
by JK_LOVER @ 2020-05-04 11:00:55


@[JK_LOVER](/user/227824) 谢奆佬!
by 宋小陀螺 @ 2020-05-04 11:11:03


|