結果
問題 |
No.3115 One Power One Kill
|
ユーザー |
![]() |
提出日時 | 2025-04-18 20:44:14 |
言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
結果 |
RE
|
実行時間 | - |
コード長 | 748 bytes |
コンパイル時間 | 4,175 ms |
コンパイル使用メモリ | 250,852 KB |
実行使用メモリ | 26,108 KB |
平均クエリ数 | 2.00 |
最終ジャッジ日時 | 2025-04-18 20:44:22 |
合計ジャッジ時間 | 7,300 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 11 RE * 9 |
ソースコード
#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; int K; cin>>K; if(K==B)cout<<0<<endl; else cout<<1<<endl; int res; cin>>res; assert(res==1); return 0; }