結果

問題 No.984 Inversion
コンテスト
ユーザー leaf_1415
提出日時 2020-02-11 15:20:47
言語 C++11
(gcc 15.2.0 + boost 1.89.0)
コンパイル:
g++-15 -O2 -lm -std=gnu++11 -Wuninitialized -DONLINE_JUDGE -o a.out _filename_
実行:
./a.out
結果
WA  
実行時間 -
コード長 366 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 525 ms
コンパイル使用メモリ 71,792 KB
実行使用メモリ 6,400 KB
最終ジャッジ日時 2026-04-17 08:11:32
合計ジャッジ時間 6,850 ms
ジャッジサーバーID
(参考情報)
judge1_0 / judge2_1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 10 WA * 14
権限があれば一括ダウンロードができます

ソースコード

diff #
raw source code

#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