Submission #12952

#TimeUsernameProblemLanguageResultExecution timeMemory
12952dohyun0324산악 구조대 (JOI13_mountain)C++98
100 / 100
19 ms896 KiB
#include "grader.h" void Rescue(int r, int c, int x, int y, int h) { int i,j,p,k; p=y; for(i=r;i>=x;i--) { for(j=p;j<=c;j++) { k=Measure(i,j); if(k==h) Pinpoint(i,j); if(k<h) break; } p=j; } p=y; for(i=1;i<=x;i++) { for(j=p;j<=c;j++) { k=Measure(i,j); if(k==h) Pinpoint(i,j); if(k<h) break; } p=j; } p=y; for(i=1;i<=x;i++) { for(j=p;j>=1;j--) { k=Measure(i,j); if(k==h) Pinpoint(i,j); if(k<h) break; } p=j; } p=y; for(i=r;i>=x;i--) { for(j=p;j>=1;j--) { k=Measure(i,j); if(k==h) Pinpoint(i,j); if(k<h) break; } p=j; } }
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...