Submission #1156489

#TimeUsernameProblemLanguageResultExecution timeMemory
1156489KickingKunRobot Contest (IOI23_robot)C++20
10 / 100
66 ms5596 KiB
#include "robot.h" #include <bits/stdc++.h> using namespace std; void sub1() { // start bat dau tu (0, 0) set_instruction({0, -2, 0, 0, -2}, 1, 'E'); // di chuyen tu start -> bien phai set_instruction({0, 1, 0, 0, -2}, 1, 'E'); // di chuyen tiep 1 buoc xuong bien duoi set_instruction({0, 1, 0, -2, -2}, 1, 'S'); // di chuyen ve dich set_instruction({0, 0, 0, -2, 1}, 1, 'S'); // end set_instruction({0, 0, -2, -2, 1}, 1, 'T'); } void sub2() { // start for (int S: {-1, 0}) for (int E: {-1, 0}) if (S != -1 || E != -1) { if (E == 0) set_instruction({0, -2, S, E, -2}, 1, 'E'); else set_instruction({0, -2, S, E, -2}, 1, 'S'); } for (int N: {-1, 0, 1}) for (int E: {-1, 0}) if (N != -1 || E != -1) { if (E == 0) set_instruction({0, -2, -2, E, N}, 1, 'E'); else set_instruction({0, -2, -2, E, N}, 1, 'N'); } // di doc duong h = 1 for (int W: {-1, 0, 1}) for (int S: {-1, 0, 1}) for (int E: {-1, 0}) if (S != -1 || E != -1) { if (E == 0) set_instruction({0, W, S, E, -2}, 1, 'E'); else set_instruction({0, W, S, E, -2}, 1, 'S'); } // di doc duong h = 2 for (int W: {-1, 0, 1}) for (int N: {-1, 0, 1}) for (int E: {-1, 0}) if (N != -1 || E != -1) { if (E == 0) set_instruction({0, W, -2, E, N}, 1, 'E'); else set_instruction({0, W, -2, E, N}, 1, 'N'); } // end: cot w for (int W: {-1, 0, 1}) set_instruction({0, W, 0, -2, -2}, 1, 'S'); for (int W: {-1, 0, 1}) for (int N: {-1, 0, 1}) set_instruction({0, W, -2, -2, N}, 1, 'T'); } void program_pulibot() { sub2(); }
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...