結果

問題 No.3115 One Power One Kill
ユーザー 沙耶花
提出日時 2025-04-18 20:47:34
言語 C++17
(gcc 13.3.0 + boost 1.87.0)
結果
AC  
実行時間 68 ms / 2,000 ms
コード長 790 bytes
コンパイル時間 4,316 ms
コンパイル使用メモリ 249,452 KB
実行使用メモリ 25,996 KB
平均クエリ数 2.00
最終ジャッジ日時 2025-04-18 20:47:42
合計ジャッジ時間 7,183 ms
ジャッジサーバーID
(参考情報)
judge4 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 20
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <stdio.h>
#include <atcoder/all>
#include <bits/stdc++.h>
using namespace std;
using namespace atcoder;
using mint = modint998244353;
#define rep(i,n) for (int i = 0; i < (n); ++i)
#define Inf32 1000000001
#define Inf64 4000000000000000001LL

bool is_p(int n){
	for(int i=2;i<n;i++){
		if(n%i==0){
			return false;
		}
	}
	return true;
}
int main(){
	/*
	for(int i=100;i<=100000;i++){
		if(is_p(i)==false){
			continue;
		}
		for(long long j=i-1;j<=100000;j+=(i-1)){
			auto res = pow_mod(j,i,1000000007);
			if(res%i==0){
				cout<<i<<' '<<j<<endl;
			}
		}
	}
		*/
	int A= 139,B = 58512;
	swap(A,B);
	cout<<A<<' '<<B<<endl;
	//cout<<pow_mod(A,B,1000000007)<<endl;
	int K;
	cin>>K;
	if(K%B==0)cout<<0<<endl;
	else cout<<1<<endl;
	int res;
	cin>>res;
	assert(res==1);
	return 0;
}
0