結果

問題 No.984 Inversion
ユーザー leaf_1415leaf_1415
提出日時 2020-02-11 15:20:47
言語 C++11
(gcc 11.4.0)
結果
WA  
実行時間 -
コード長 366 bytes
コンパイル時間 868 ms
コンパイル使用メモリ 56,984 KB
実行使用メモリ 6,548 KB
最終ジャッジ日時 2024-04-08 15:22:07
合計ジャッジ時間 1,408 ms
ジャッジサーバーID
(参考情報)
judge13 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 1 ms
6,548 KB
testcase_01 AC 2 ms
6,548 KB
testcase_02 WA -
testcase_03 AC 2 ms
6,548 KB
testcase_04 WA -
testcase_05 WA -
testcase_06 AC 2 ms
6,548 KB
testcase_07 WA -
testcase_08 AC 2 ms
6,548 KB
testcase_09 WA -
testcase_10 WA -
testcase_11 WA -
testcase_12 AC 2 ms
6,548 KB
testcase_13 WA -
testcase_14 WA -
testcase_15 AC 2 ms
6,548 KB
testcase_16 WA -
testcase_17 WA -
testcase_18 WA -
testcase_19 AC 2 ms
6,548 KB
testcase_20 AC 1 ms
6,548 KB
testcase_21 WA -
testcase_22 AC 1 ms
6,548 KB
testcase_23 AC 2 ms
6,548 KB
testcase_24 WA -
testcase_25 AC 2 ms
6,548 KB
権限があれば一括ダウンロードができます

ソースコード

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