April Fools Day Contest 2014 逗比的专场。。。。
A. The Great Game time limit per test 1 second memory limit per test 256 megabytes input standard input output standard outputTwo teams meet in The Game World Championship. Some scientists consider this game to be the most intellectually challenging game in the world. You are given two strings describing the teams' actions in the final battle. Figure out who became the champion.
InputThe input contains two strings of equal length (between 2 and 20 characters, inclusive). Each line describes the actions of one team.
OutputOutput "TEAM 1 WINS" if the first team won, "TEAM 2 WINS" if the second team won, and "TIE" if there was a tie.
Sample test(s) input[]()[]8< 8<[]()8<output
TEAM 2 WINSinput
8<8<() []8<[]output
TIE
石头,剪刀,布 像不像?
#include#include #include #include using namespace std; char str1[40],str2[40]; int ck(char a,char b, char c,char d) { if(a==c&&b==d) return 2; if(a=='['&&b==']') { if(c=='8'&&d=='<') return 0; else if(c=='('&&d==')') return 1; } else if(a=='('&&b==')') { if(c=='8'&&d=='<') return 1; else if(c=='['&&d==']') return 0; } else if(a=='8'&&b=='<') { if(c=='['&&d==']') return 1; else if(c=='('&&d==')') return 0; } } int main() { cin>>str1; cin>>str2; int n=strlen(str1); int t1=0,t2=0; for(int i=0;i+1 t2) puts("TEAM 1 WINS"); else if(t1
B. Mysterious Language time limit per test 1 second memory limit per test 256 megabytes input standard input output standard outputYou are given a mysterious language (codenamed "Secret") available in "Custom Invocation" tab. Figure out what this language is and write a program which prints its name. Note that the program must be written in this language.
InputThis program has only one test (your program doesn't have to read anything).
OutputOutput the name of the mysterious language. Note that the name is case-sensitive and might contain digits and special characters.
Sample test(s) NoteSome scientists disagree on what should be considered as a language and what should be considered as a dialect.
答案是:Write(*, "(A10)") "FORTRAN 77" End
C. Magnum Opus time limit per test 1 second memory limit per test 256 megabytes input standard input output standard outputSalve, mi amice.
Et tu quidem de lapis philosophorum. Barba non facit philosophum. Labor omnia vincit. Non potest creatio ex nihilo. Necesse est partibus.
Rp:
I Aqua Fortis
I Aqua Regia
II Amalgama
VII Minium
IV Vitriol
Misce in vitro et stus, et nil admirari. Festina lente, et nulla tenaci invia est via.
Fac et spera,
Vale,
Nicolas Flamel
InputThe first line of input contains several space-separated integers ai (0 ≤ ai ≤ 100).
OutputPrint a single integer.
Sample test(s) input2 4 6 8 10output1
一个词都不认识,google翻译过来也看不懂。。。
#include#include #include #include using namespace std; int a,b,c,d,e; int main() { cin>>a>>b>>c>>d>>e; int t=min(a,min(b,min(c/2,min(d/7,e/4)))); cout<
F. 000001 time limit per test 1 second memory limit per test 256 megabytes input standard input output standard output InputThe input contains a single integer a (1 ≤ a ≤ 64).
OutputOutput a single integer.
Sample test(s) input2output1input4output2input27output5input42output6
绝对一坑:oeis A000001
#include#include #include #include #include #include using namespace std; int a[100]={0,1, 1, 1, 2, 1, 2, 1, 5, 2, 2, 1, 5, 1, 2, 1, 14, 1, 5, 1, 5, 2, 2, 1, 15, 2, 2, 5, 4, 1, 4, 1, 51, 1, 2, 1, 14, 1, 2, 2, 14, 1, 6, 1, 4, 2, 2, 1, 52, 2, 5, 1, 5, 1, 15, 2, 13, 2, 2, 1, 13, 1, 2, 4, 267, 1, 4, 1, 5, 1, 4, 1, 50, 1, 2, 3, 4, 1, 6, 1, 52, 15, 2, 1, 15, 1, 2, 1, 12, 1, 10, 1, 4, 2 }; int main() { int n; cin>>n;cout<
H. A + B Strikes Back time limit per test 1 second memory limit per test 256 megabytes input standard input output standard outputA + B is often used as an exa