Submission #1025404

# Submission time Handle Problem Language Result Execution time Memory
1025404 2024-07-17T01:54:59 Z LeaRouse Vision Program (IOI19_vision) C++14
0 / 100
2 ms 600 KB
#include <bits/stdc++.h>
#include "vision.h"
#define fastio ios_base::sync_with_stdio(0); cin.tie(0); cout.tie(0);
#define ll long long
#define ff first
#define ss second
using namespace std;
const int MAX=2e5+5;
ll P[MAX],bit[MAX],d=0;
 
void construct_network(int h,int w,int k){
    vector<int>v;
    bool awa=false;
    int a=0;
    for(int i=0;i<h;i++){
        if(w%2==0)  a=1-a;
        for(int j=0;j<w;j++){
            if(j%2==a){
                v.push_back(j+i*w);
            }
        }
    }
    add_or(v);
}

Compilation message

vision.cpp: In function 'void construct_network(int, int, int)':
vision.cpp:13:10: warning: unused variable 'awa' [-Wunused-variable]
   13 |     bool awa=false;
      |          ^~~
# Verdict Execution time Memory Grader output
1 Incorrect 0 ms 344 KB on inputs (0, 0), (0, 2), expected 0, but computed 1
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 0 ms 344 KB on inputs (0, 0), (0, 2), expected 0, but computed 1
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 0 ms 344 KB on inputs (0, 0), (0, 2), expected 0, but computed 1
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 0 ms 344 KB on inputs (0, 0), (0, 2), expected 0, but computed 1
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 0 ms 344 KB on inputs (0, 0), (0, 2), expected 0, but computed 1
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Correct 1 ms 344 KB Output is correct
2 Incorrect 1 ms 348 KB on inputs (0, 0), (0, 1), expected 0, but computed 1
3 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 2 ms 600 KB on inputs (126, 120), (176, 169), expected 0, but computed 1
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 0 ms 344 KB on inputs (0, 0), (0, 2), expected 0, but computed 1
2 Halted 0 ms 0 KB -