結果
問題 |
No.1198 お菓子配り-1
|
ユーザー |
![]() |
提出日時 | 2020-08-28 22:18:18 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 212 bytes |
コンパイル時間 | 767 ms |
コンパイル使用メモリ | 64,408 KB |
実行使用メモリ | 6,820 KB |
最終ジャッジ日時 | 2024-11-14 01:08:29 |
合計ジャッジ時間 | 1,439 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 4 |
other | AC * 12 WA * 2 |
ソースコード
#include <iostream> using namespace std; int main() { string s; cin >> s; int n = s.size(); int x = s[n-1] - '0'; if (n > 1) x += (s[n-2] - '0') * 10; cout << (x % 4 == 2 ? -1 : 1) << endl; }