結果

問題 No.1198 お菓子配り-1
ユーザー kkk
提出日時 2024-12-09 00:20:56
言語 C++14
(gcc 13.3.0 + boost 1.87.0)
結果
WA  
実行時間 -
コード長 285 bytes
コンパイル時間 1,930 ms
コンパイル使用メモリ 165,264 KB
実行使用メモリ 5,248 KB
最終ジャッジ日時 2024-12-09 00:20:59
合計ジャッジ時間 2,905 ms
ジャッジサーバーID
(参考情報)
judge2 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 4
other AC * 13 WA * 1
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <bits/stdc++.h>
using namespace std;

int main(){
    unsigned long long N;
    cin >> N;
    
    if (N % 4 == 0 && N > 4){
        cout << 1 << endl;
    }else if(N % 2 == 1 && N > 1){
        cout << 1 << endl;
    }else{
        cout << -1 << endl;
    }

    return 0; 
}
0