結果
問題 |
No.1006 Share an Integer
|
ユーザー |
|
提出日時 | 2020-03-07 13:17:34 |
言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 620 bytes |
コンパイル時間 | 1,199 ms |
コンパイル使用メモリ | 164,336 KB |
実行使用メモリ | 338,404 KB |
最終ジャッジ日時 | 2024-10-14 12:22:39 |
合計ジャッジ時間 | 8,215 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | WA * 3 |
other | WA * 8 TLE * 2 -- * 9 |
ソースコード
#include <bits/stdc++.h> #define pt(sth) cout << sth << "\n" #define chmax(a, b) {if(a<b) a=b;} #define chmin(a, b) {if(a>b) a=b;} #define moC(a, s, b) (a)=((a)s(b)+MOD)%MOD using namespace std; typedef long long ll; typedef pair<ll, ll> P; static const ll INF=1e18; static const ll MAX=101010; static const ll MOD=1e9+7; map<ll, ll> prime[MAX*10*2]; void factrization(ll n) { ll id=n; for(ll i=2; i*i<=n; i++) { while(n%i==0) { prime[id][i]++; n/=i; } } if(n>1) prime[id][n]++; } int main(void) { ll X; cin >> X; ll i; for(i=1; i<X; i++) factrization(i); }