Submission #87601

#TimeUsernameProblemLanguageResultExecution timeMemory
87601BevandaOlivander (COCI18_olivander)C++14
50 / 50
3 ms672 KiB
#include <bits/stdc++.h> using namespace std; int N, s[103], k[103]; int main() { ios::sync_with_stdio(0); cin.tie(0); cin >> N; for (int i = 0; i < N; ++i) cin >> s[i]; for (int i = 0; i < N; ++i) cin >> k[i]; sort(s, s + N); sort(k, k + N); int ok = 1; for (int i = 0; i < N; ++i) if (s[i] > k[i]) ok = 0; if (ok == 1) cout << "DA"; else cout << "NE"; return 0; }

Compilation message (stderr)

olivander.cpp: In function 'int main()':
olivander.cpp:21:3: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
   for (int i = 0; i < N; ++i)
   ^~~
olivander.cpp:25:5: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'for'
     if (ok == 1)
     ^~
#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...