#define _CRT_SECURE_NO_WARNINGS #define _USE_MATH_DEFINES #ifdef __unix__ #include #else #include "bits\stdc++.h" #endif #include #include #include #include #define REP(i,a,b) for(i=a;i> s) { if(strcmp(s,"Merry Christmas!") == 0) break; int a = atoi(s); if(a == 20151224) cout << "F" << endl; else { // draw_map(map,a,x,y,muki); char c; if(a == 0) { switch(rand() % 2) { case 0 : c = 'L'; break; case 1 : c = 'R'; break; } } else { if(rand() % 10 > 2) c = 'F'; else { switch(rand() % 3) { case 0 : c = 'F'; break; case 1 : c = 'L'; break; case 2 : c = 'R'; break; } } } cout << c << endl; // print_map(map); } } return 0; }