結果

問題 No.1198 お菓子配り-1
ユーザー shiomusubi496shiomusubi496
提出日時 2020-08-28 22:07:45
言語 C++14
(gcc 13.3.0 + boost 1.87.0)
結果
WA  
実行時間 -
コード長 208 bytes
コンパイル時間 1,635 ms
コンパイル使用メモリ 166,912 KB
実行使用メモリ 6,824 KB
最終ジャッジ日時 2024-11-14 00:45:13
合計ジャッジ時間 2,317 ms
ジャッジサーバーID
(参考情報)
judge2 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 1 WA * 3
other AC * 4 WA * 10
権限があれば一括ダウンロードができます

ソースコード

diff #

#include<bits/stdc++.h>
#define int long long
using namespace std;
signed main(){
    string N;
    cin>>N;
    int ans=0;
    for(char c:N)ans=ans*2+(c-'0')%4;
    if(ans==2)puts("1");
    else puts("-1");
}
0