結果
問題 | No.3115 One Power One Kill |
ユーザー |
|
提出日時 | 2025-04-29 22:03:09 |
言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 77 ms / 2,000 ms |
コード長 | 875 bytes |
コンパイル時間 | 2,253 ms |
コンパイル使用メモリ | 193,560 KB |
実行使用メモリ | 25,996 KB |
平均クエリ数 | 2.00 |
最終ジャッジ日時 | 2025-04-29 22:03:15 |
合計ジャッジ時間 | 4,643 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 20 |
ソースコード
#include <bits/stdc++.h> using namespace std; using ll = long long; ll modpow(ll a, ll b, ll p){ ll ans = 1; while(b){ if(b & 1) (ans *= a) %= p; (a *= a) %= p; b /= 2; } return ans; } int main(){ ios::sync_with_stdio(false); cin.tie(0); /*constexpr int r = 100000; vector<bool> used(r + 1); vector<int> p; for(int i = 2; i <= r; i++){ if(used[i]) continue; if(i >= 100){ for(int j = 1; j * (i - 1) <= 100000; j++){ if(modpow(j * (i - 1), i, 1'000'000'007) % i == 0){ cerr << j * (i - 1) << '\n'; return 0; } } } for(int j = 2 * i; j <= r; j += i){ used[j] = true; } } cerr << "enter\n";*/ cout << 19000 << ' ' << 101 << endl; int K; cin >> K; cout << (K % 101 >= 1) << '\n'; }