Submission #1234020

#TimeUsernameProblemLanguageResultExecution timeMemory
1234020mariza로봇 대회 (IOI23_robot)C++20
6 / 100
65 ms5704 KiB
#include "robot.h"
#include <bits/stdc++.h>

using namespace std;
typedef long long ll;

void program_pulibot(){
    for(int x1=-2; x1<=2; x1++){
        for(int x2=-2; x2<=2; x2++){
            set_instruction({0,x1,-2,-2,x2},1,'T');
        }
    }

    for(int c=0; c<=1; c++){
        for(int s=-2; s<=2; s++){
            for(int e=-2; e<=2; e++){
                for(int n=-2; n<=2; n++){
                    if(s==-2 && e==-2) continue;
                    set_instruction({c,0,s,e,n},1,'W');
                }
            }
        }
    }

    for(int c=0; c<=1; c++){
        for(int w=-2; w<=2; w++){
            if(w==0) continue;
            for(int e=-2; e<=2; e++){
                for(int n=-2; n<=2; n++){
                    set_instruction({c,w,0,e,n},1,'S');
                }
            }
        }
    }

    for(int c=0; c<=1; c++){
        for(int w=-2; w<=2; w++){
            if(w==0) continue;
            for(int s=-2; s<=2; s++){
                if(s==0) continue;
                for(int n=-2; n<=2; n++){
                    set_instruction({c,w,s,0,n},1,'E');
                }
            }
        }
    }

    for(int c=0; c<=1; c++){
        for(int w=-2; w<=2; w++){
            if(w==0) continue;
            for(int s=-2; s<=2; s++){
                if(s==0) continue;
                for(int e=-2; e<=2; e++){
                    if(e==0 || (s==-2 && e==-2)) continue;
                    set_instruction({c,w,s,e,0},1,'N');
                }
            }
        }
    }

    for(int c=0; c<=1; c++){
        for(int w=-2; w<=2; w++){
            if(w==0) continue;
            for(int s=-2; s<=2; s++){
                if(s==0) continue;
                for(int e=-2; e<=2; e++){
                    if(e==0) continue;
                    for(int n=-2; n<=2; n++){
                        if(n==0 || (s==-2 && e==-2)) continue;
                        set_instruction({c,w,s,e,n},2,'H');
                    }
                }
            }
        }
    }

    for(int s=-2; s<=2; s++){
        for(int e=-2; e<=2; e++){
            for(int n=-2; n<=2; n++){
                if(s==-2 && e==-2) continue;
                set_instruction({2,s,e,n,1},2,'N');
            }
        }
    }

    for(int w=-2; w<=2; w++){
        if(w==0 || w==1) continue;
        for(int e=-2; e<=2; e++){
            for(int n=-2; n<=2; n++){
                set_instruction({2,e,n,1,w},2,'E');
            }
        }
    }

    for(int w=-2; w<=2; w++){
        if(w==0 || w==1) continue;
        for(int s=-2; s<=2; s++){
            if(s==0 || s==1) continue;
            for(int n=-2; n<=2; n++){
                set_instruction({2,n,1,w,s},2,'S');
            }
        }
    }

    for(int w=-2; w<=2; w++){
        if(w==0 || w==1) continue;
        for(int s=-2; s<=2; s++){
            if(s==0 || s==1) continue;
            for(int e=-2; e<=2; e++){
                if(e==0 || e==1 || (s==-2 && e==-2)) continue;
                set_instruction({2,1,w,s,e},2,'W');
            }
        }
    }
}
#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...