Submission #1111295

# Submission time Handle Problem Language Result Execution time Memory
1111295 2024-11-12T02:09:34 Z ezzzay Logičari (COCI21_logicari) C++14
0 / 110
1 ms 336 KB
#include<bits/stdc++.h>
using namespace std;
#define int long long
#define ff first
#define ss second
#define pb push_back
signed main(){
    int n;
    cin>>n;
    if(n==3){
        cout<<-1;
        return 0;
    }
    if(n%2){
        cout<<n/2+1;
        return 0;
    }
    cout<<n/2;
}
# Verdict Execution time Memory Grader output
1 Correct 1 ms 336 KB Output is correct
2 Correct 1 ms 336 KB Output is correct
3 Incorrect 1 ms 336 KB Output isn't correct
4 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 1 ms 336 KB Output isn't correct
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 1 ms 336 KB Output isn't correct
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Correct 1 ms 336 KB Output is correct
2 Correct 1 ms 336 KB Output is correct
3 Incorrect 1 ms 336 KB Output isn't correct
4 Halted 0 ms 0 KB -