結果

問題 No.3081 Make Palindromic Multiple
ユーザー kaichou243
提出日時 2025-02-25 10:34:43
言語 C++17
(gcc 13.3.0 + boost 1.87.0)
結果
WA  
実行時間 -
コード長 803 bytes
コンパイル時間 1,953 ms
コンパイル使用メモリ 196,976 KB
実行使用メモリ 7,328 KB
最終ジャッジ日時 2025-03-27 13:23:43
合計ジャッジ時間 21,824 ms
ジャッジサーバーID
(参考情報)
judge3 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 1 WA * 2
other AC * 9 WA * 45
権限があれば一括ダウンロードができます

ソースコード

diff #

#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 << ' ' << 1000000000000000000ll << endl;
	}
}
0