結果
| 問題 | No.1198 お菓子配り-1 |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2020-08-28 22:11:40 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.89.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 224 bytes |
| 記録 | |
| コンパイル時間 | 1,779 ms |
| コンパイル使用メモリ | 167,480 KB |
| 実行使用メモリ | 6,820 KB |
| 最終ジャッジ日時 | 2024-11-14 00:51:39 |
| 合計ジャッジ時間 | 2,399 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 4 |
| other | AC * 12 WA * 2 |
ソースコード
#include<bits/stdc++.h>
#define int long long
using namespace std;
signed main(){
string N;
cin>>N;
reverse(N.begin(),N.end());
N+='0';
if(((N[0]-'0')+(N[1]-'0')*10)%4==2)puts("-1");
else puts("1");
}