結果
| 問題 | No.677 10^Nの約数 |
| コンテスト | |
| ユーザー |
shikaku
|
| 提出日時 | 2018-04-27 23:24:29 |
| 言語 | C++11 (gcc 15.2.0 + boost 1.89.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 766 bytes |
| 記録 | |
| コンパイル時間 | 683 ms |
| コンパイル使用メモリ | 78,544 KB |
| 実行使用メモリ | 790,912 KB |
| 最終ジャッジ日時 | 2026-03-16 02:42:14 |
| 合計ジャッジ時間 | 11,549 ms |
|
ジャッジサーバーID (参考情報) |
judge1_0 / judge3_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 3 WA * 1 RE * 9 TLE * 3 MLE * 1 |
ソースコード
#include <iostream>
#include <vector>
#include <algorithm>
#include <string>
using namespace std;
int main(){
long long x, n, i, j;
cin >> n;
x = 10;
for( i = 1 ; i < n ; i = i + 1 ){
x *= 10;
}
vector<long long> k(x + 1);
for( i = 1 ; i * i <= x ; i = i + 1 ){
for( j = 1 ; j <= x ; j = j + 1 ){
if( x % ( i * j ) == 0 ) k.at(i*j) = 1;
}
}
for( i = 1 ; i <= x ; i = i + 1 ){
if( k.at(i) == 1 ) cout << i << endl;
}
return 0;
}
shikaku