Submission #826104

#TimeUsernameProblemLanguageResultExecution timeMemory
826104tolbiVision Program (IOI19_vision)C++17
0 / 100
6 ms1108 KiB
#pragma optimize("Bismilahirrahmanirrahim") //█▀█─█──█──█▀█─█▀█ //█▄█─█──█──█▄█─█■█ //█─█─█▄─█▄─█─█─█─█ //Allahuekber //ahmet23 orz... //FatihSultanMehmedHan //YavuzSultanSelimHan //AbdulhamidHan //Sani buyuk Osman Pasa Plevneden cikmam diyor #define author tolbi #include <bits/stdc++.h> using namespace std; #define coutarr(x) for (auto &it : x) cout<<it<<" ";cout<<endl; #define vint(x) vector<int> x #define sortarr(x) sort(x.begin(), x.end()) #define sortrarr(x) sort(x.rbegin(), x.rend()) #define tol(bi) (1LL<<((int)(bi))) typedef long long ll; const int MOD = 1e9+7; mt19937 ayahya(chrono::high_resolution_clock().now().time_since_epoch().count()); #include "vision.h" void construct_network(int H, int W, int K) { vector<int> columns; for (int i = 0; i < H; i++){ vector<int> arr; for (int j = 0; j < W; j++){ arr.push_back(i*W+j); } columns.push_back(add_xor(arr)); } vector<int> rows; for (int i = 0; i < W; i++){ vector<int> arr; for (int j = 0; j < H; j++){ arr.push_back(j*W+i); } rows.push_back(add_xor(arr)); } vector<int> final1; vector<int> final2; for (int i = 1; i < rows.size(); i++){ final1.push_back(add_and({rows[i],rows[i-1]})); } for (int i = 1; i < columns.size(); i++){ final2.push_back(add_and({columns[i],columns[i-1]})); } int a = add_or(final1); int b = add_or(final2); add_xor({a,b}); }

Compilation message (stderr)

vision.cpp:1: warning: ignoring '#pragma optimize ' [-Wunknown-pragmas]
    1 | #pragma optimize("Bismilahirrahmanirrahim")
      | 
vision.cpp: In function 'void construct_network(int, int, int)':
vision.cpp:44:20: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
   44 |  for (int i = 1; i < rows.size(); i++){
      |                  ~~^~~~~~~~~~~~~
vision.cpp:47:20: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
   47 |  for (int i = 1; i < columns.size(); i++){
      |                  ~~^~~~~~~~~~~~~~~~
#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...