結果
| 問題 |
No.3081 Make Palindromic Multiple
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2025-02-25 10:47:01 |
| 言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 802 bytes |
| コンパイル時間 | 2,094 ms |
| コンパイル使用メモリ | 196,344 KB |
| 実行使用メモリ | 7,328 KB |
| 最終ジャッジ日時 | 2025-03-27 13:24:13 |
| 合計ジャッジ時間 | 18,886 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | WA * 3 |
| other | WA * 54 |
ソースコード
#include<bits/stdc++.h>
using namespace std;
using ll=long long;
using P=pair<ll,ll>;
ll qpow(ll a,ll n,ll mod){
ll ret=1;
while(n){
if(n&1) ret=(ret*a)%mod;
a=(a*a)%mod;
n>>=1;
}
return ret;
}
vector<P> prime_factorize(ll N) {
vector<P> res;
for(ll a=2;a*a<=N;++a){
if(N%a!=0) continue;
ll ex=0;
while(N%a==0){
++ex;
N/=a;
}
res.push_back({a,ex});
}
if(N!=1) res.push_back({N,1});
return res;
}
ll Euler_phi(ll n){
vector<pair<ll,ll>> pf=prime_factorize(n);
ll res=n;
for(auto p : pf){
res/=p.first;
res*=(p.first-1);
}
return res;
}
int main(){
ll n;
cin >> n;
cout << 50000 << endl;
for(int i=0;i<50000;i++){
cout << n*i << ' ' << 1000000000000000ll << endl;
}
}