Submission #362465

#TimeUsernameProblemLanguageResultExecution timeMemory
362465MoldovanAndrei1Vision Program (IOI19_vision)C++14
33 / 100
2 ms1128 KiB
#include "vision.h" int w1; int OP(int a , int b ) { return a*w1+b; } void construct_network(int H, int W, int K) { std::vector<int> NS; int poz=H*W-1; w1=W; for(int i = 0 ; i <H;i++) { for(int j = 0 ; j < W; j++) { for(int r = 0 ; r <= K ;r++) { if(i + r <H) { if(j+(K-r)<W) { NS={OP(i,j),OP(i+r,j+K-r)}; int a=add_and(NS); poz++; } if(j-(K-r)>=0) { NS={OP(i,j),OP(i+r,j-K+r)}; int a=add_and(NS); poz++; } } if(i-r>=0){ if(j+(K-r)<W) { NS={OP(i,j),OP(i-r,j+K-r)}; int a=add_and(NS);poz++; } if(j-(K-r)>=0) { NS={OP(i,j),OP(i-r,j-K+r)}; int a=add_and(NS); poz++; }} } } } NS.clear(); for(int i=H*W;i<=poz;i++)NS.push_back(i); int b=add_or(NS); }

Compilation message (stderr)

vision.cpp: In function 'void construct_network(int, int, int)':
vision.cpp:24:29: warning: unused variable 'a' [-Wunused-variable]
   24 |                         int a=add_and(NS);
      |                             ^
vision.cpp:30:29: warning: unused variable 'a' [-Wunused-variable]
   30 |                         int a=add_and(NS);
      |                             ^
vision.cpp:38:29: warning: unused variable 'a' [-Wunused-variable]
   38 |                         int a=add_and(NS);poz++;
      |                             ^
vision.cpp:43:29: warning: unused variable 'a' [-Wunused-variable]
   43 |                         int a=add_and(NS);
      |                             ^
vision.cpp:53:6: warning: unused variable 'b' [-Wunused-variable]
   53 |  int b=add_or(NS);
      |      ^
#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...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...