結果
| 問題 | No.677 10^Nの約数 | 
| コンテスト | |
| ユーザー |  shikaku | 
| 提出日時 | 2018-04-28 02:27:53 | 
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0) | 
| 結果 | 
                                WA
                                 
                             | 
| 実行時間 | - | 
| コード長 | 855 bytes | 
| コンパイル時間 | 566 ms | 
| コンパイル使用メモリ | 66,276 KB | 
| 実行使用メモリ | 784,752 KB | 
| 最終ジャッジ日時 | 2024-06-27 23:12:31 | 
| 合計ジャッジ時間 | 3,069 ms | 
| ジャッジサーバーID (参考情報) | judge1 / judge3 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| sample | WA * 2 | 
| other | WA * 6 RE * 10 MLE * 1 | 
ソースコード
#include <iostream>
#include <vector>
#include <algorithm>
#include <string>
#include <cmath>
using namespace std;
                                                                                                
  
int main(){
                                                                                                
   
    long long x, n, i, j;
    long long t = 1;
    
    cin >> n;
    x = 10;
    for( i = 1 ; i < n ; i = i + 1 ){
         x *= 10;
         }
    vector<long long> k(x + 1);
    for( i = 1 ; i <= n ; i = i + 1 ){
         t = (long long)pow(2,i);
         k.at(t) = 1;
         for( j = 1 ; j <= n ; j = j + 1 ){
              t *= 5;
              k.at(t) = 1;
              }
         }
    for( i = 1 ; i <= x ; i = i + 1 ){
         if( k.at(i) == 1 ) cout << i << endl;
         }
    return 0;
}
            
            
            
        