結果

問題 No.1198 お菓子配り-1
ユーザー hiro71687k
提出日時 2023-03-01 18:37:35
言語 C++17
(gcc 13.3.0 + boost 1.87.0)
結果
WA  
実行時間 -
コード長 388 bytes
コンパイル時間 3,302 ms
コンパイル使用メモリ 248,988 KB
最終ジャッジ日時 2025-02-11 00:31:11
ジャッジサーバーID
(参考情報)
judge4 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 4
other AC * 12 WA * 2
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <bits/stdc++.h>
#include <atcoder/all>
using namespace std;
using namespace atcoder;
using ll=int;
using ld=long double;
ld pie=3.14159265359;
ll inf=80010010;
ll mod=1000000007;
int main(){
    ll n;
    cin >> n;
    if (n%2)
    {
        cout << 1 << endl;
    }else if ((n/2)%2||n==4)
    {
        cout << -1 << endl;
    }else{
        cout << 1 << endl;
    }
    
    
}
0