Submission #919853

#TimeUsernameProblemLanguageResultExecution timeMemory
919853SuPythonyCave (IOI13_cave)C++17
0 / 100
14 ms348 KiB
#include <bits/stdc++.h> #include "cave.h" using namespace std; typedef long long ll; int tryCombination(int S[]); void answer(int S[] , int D[]); void exploreCave(int n) { int s[n]; fill(s, s+n, 0); for (int i=0; i<n; i++) { if (tryCombination(s)!=i) { s[i]!=s[i]; } } int d[n]; iota(d, d+n, 0); answer(s, d); }

Compilation message (stderr)

cave.cpp: In function 'void exploreCave(int)':
cave.cpp:14:17: warning: self-comparison always evaluates to false [-Wtautological-compare]
   14 |             s[i]!=s[i];
      |             ~~~~^~~~~~
cave.cpp:14:17: warning: statement has no effect [-Wunused-value]
   14 |             s[i]!=s[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...