結果
問題 | No.1198 お菓子配り-1 |
ユーザー |
![]() |
提出日時 | 2023-03-01 18:41:41 |
言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 480 bytes |
コンパイル時間 | 4,237 ms |
コンパイル使用メモリ | 249,868 KB |
最終ジャッジ日時 | 2025-02-11 00:31:27 |
ジャッジサーバーID (参考情報) |
judge4 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 4 |
other | AC * 13 WA * 1 |
ソースコード
#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) { if (n==1) { cout << -1 << endl; return 0; } cout << 1 << endl; }else if ((n/2)%2||n==4) { cout << -1 << endl; }else{ cout << 1 << endl; } }