Submission #701910

#TimeUsernameProblemLanguageResultExecution timeMemory
701910CyanmondGondola (IOI14_gondola)C++17
10 / 100
8 ms620 KiB
#include "gondola.h" #include <bits/stdc++.h> using i64 = long long; constexpr i64 mod = 1000000009; int valid(int n, int inputSeq[]) { for (int i = 0; i < n; ++i) { --inputSeq[i]; } for (int f = 0; f < n; ++f) { if (inputSeq[f] >= n) { continue; } int x = inputSeq[f]; bool answer = true; for (int i = f + 1; i < n; ++i) { const int y = (x + 1) % n; if (inputSeq[i] < n and y != inputSeq[i]) { answer = false; } x = y; } return answer; } return true; } //---------------------- int replacement(int n, int gondolaSeq[], int replacementSeq[]) { } //---------------------- int countReplacement(int n, int inputSeq[]) { }

Compilation message (stderr)

gondola.cpp: In function 'int replacement(int, int*, int*)':
gondola.cpp:32:1: warning: no return statement in function returning non-void [-Wreturn-type]
   32 | }
      | ^
gondola.cpp: In function 'int countReplacement(int, int*)':
gondola.cpp:37:1: warning: no return statement in function returning non-void [-Wreturn-type]
   37 | }
      | ^
#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...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...