Codeforces Round #686 DIV3 D問題
Problem description
省略
省略
C++に変換後のコードはこちら
//no-unlocked
int fs; ll f[30]; int fn[30], mx;
ll res[100];
{
REP(rd_int()){
ll @N;
fs = Factor(N, f, fn);
mx = max(fn(fs));
rep(i,mx) res[i] = 1;
rep(i,fs) rep(j,fn[i]) res[mx-1-j] *= f[i];
wt(mx);
wt(res(mx));
}
}
Current time: 2024年04月23日23時18分30秒
Last modified: 2020年12月05日16時08分09秒 (by laycrs)
Tags: Competitive_Programming_Incomplete Codeforces CF686 CF_DIV3_D
トップページに戻る
Logged in as: unknown user (not login)