c++

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

@[Venus](/space/show?uid=23243) 没啥(
by NaCly_Fish @ 2019-09-10 20:15:37


%%%中国OI的希望
by XMK_萌新 @ 2019-09-10 20:23:28


请不要使用Markdown来强调头文件的重要性。
by Smile_Cindy @ 2019-09-10 20:24:03


%%%中国OI的希望
by xyf007 @ 2019-09-10 20:30:55


You're a big new star in OI
by 吴铭事 @ 2019-09-10 20:31:30


# ★★★GIANT STAR ★★★
by _H1kar1 @ 2019-09-10 20:36:21


呵呵
by Ⅹieyc @ 2019-09-11 18:10:07


@[Alpha](/space/show?uid=87058) 谢谢
by Ⅹieyc @ 2019-09-11 18:11:12


#include <stdio.h> #include <string.h> int main() { char a[3000],s[3000]; int a1,s1,a2=1,s2=1; int i; scanf("%s%s",a,s); a1=strlen(a); s1=strlen(s); for(i=0;i<a1;i++) a2*=a[i]-'A'+1; for(i=0;i<s1;i++) s2*=s[i]-'A'+1; if(a2%47==s2%47) printf("GO\n"); else printf("STAY\n"); return 0; }
by s19baoyanzhou @ 2019-09-21 12:37:22


上一页 |