Submission #511371

# Submission time Handle Problem Language Result Execution time Memory
511371 2022-01-15T17:52:49 Z mohamadsldev Nizin (COCI16_nizin) C++17
0 / 100
134 ms 6024 KB
#include <iostream>

using namespace std;

int main()
{
int n;
cin >> n;
int a[n];
for(int i=0;i<n;i++)
{
    cin >> a[i];
}
int cnt =0;
for(int i=0 ;i<n/2;i++)
{

    if(a[i]!=a[n-i-1])
        cnt++;

}
cout << cnt;
   return 0;
}
# Verdict Execution time Memory Grader output
1 Correct 1 ms 204 KB Output is correct
2 Correct 0 ms 204 KB Output is correct
3 Incorrect 1 ms 288 KB Output isn't correct
# Verdict Execution time Memory Grader output
1 Incorrect 0 ms 296 KB Output isn't correct
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 1 ms 296 KB Output isn't correct
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 0 ms 204 KB Output isn't correct
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 0 ms 204 KB Output isn't correct
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 1 ms 204 KB Output isn't correct
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 15 ms 716 KB Output isn't correct
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 48 ms 2252 KB Output isn't correct
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 103 ms 4748 KB Output isn't correct
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 134 ms 6024 KB Output isn't correct
2 Halted 0 ms 0 KB -