結果

問題 No.1006 Share an Integer
ユーザー eQeeQe
提出日時 2020-03-07 13:17:34
言語 C++11
(gcc 11.4.0)
結果
WA  
実行時間 -
コード長 620 bytes
コンパイル時間 1,494 ms
コンパイル使用メモリ 164,212 KB
実行使用メモリ 323,128 KB
最終ジャッジ日時 2024-04-22 12:55:26
合計ジャッジ時間 8,424 ms
ジャッジサーバーID
(参考情報)
judge2 / judge1
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 WA -
testcase_02 WA -
testcase_03 WA -
testcase_04 WA -
testcase_05 WA -
testcase_06 WA -
testcase_07 WA -
testcase_08 WA -
testcase_09 WA -
testcase_10 WA -
testcase_11 TLE -
testcase_12 TLE -
testcase_13 -- -
testcase_14 -- -
testcase_15 -- -
testcase_16 -- -
testcase_17 -- -
testcase_18 -- -
testcase_19 -- -
testcase_20 -- -
testcase_21 -- -
権限があれば一括ダウンロードができます

ソースコード

diff #

#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);
  
  
  
  
}



0