結果

問題 No.984 Inversion
ユーザー leaf_1415
提出日時 2020-02-11 15:20:47
言語 C++11(廃止可能性あり)
(gcc 13.3.0)
結果
WA  
実行時間 -
コード長 366 bytes
コンパイル時間 358 ms
コンパイル使用メモリ 55,772 KB
実行使用メモリ 5,248 KB
最終ジャッジ日時 2024-10-01 07:53:40
合計ジャッジ時間 1,079 ms
ジャッジサーバーID
(参考情報)
judge4 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 10 WA * 14
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <iostream>
#include <set>
#define llint long long
#define mod 1000000007

using namespace std;

llint p, n;

int main(void)
{
	ios::sync_with_stdio(0);
	cin.tie(0);
	
	cin >> p >> n;
	
	if(n == 1){
		cout << 0 << endl;
		return 0;
	}
	if(p == 2){
		cout << 0 << endl;
		return 0;
	}
	
	if(p%4 == 3) cout << 1 << endl;
	else cout << 0 << endl;
	
	return 0;
}
0