結果

問題 No.677 10^Nの約数
ユーザー ike_nyan
提出日時 2018-04-30 04:24:22
言語 C++11(廃止可能性あり)
(gcc 13.3.0)
結果
TLE  
実行時間 -
コード長 215 bytes
コンパイル時間 318 ms
コンパイル使用メモリ 30,464 KB
実行使用メモリ 10,624 KB
最終ジャッジ日時 2024-06-27 23:46:49
合計ジャッジ時間 4,686 ms
ジャッジサーバーID
(参考情報)
judge5 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 7 TLE * 1 -- * 9
権限があれば一括ダウンロードができます
コンパイルメッセージ
main.cpp: In function ‘int main()’:
main.cpp:6:9: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
    6 |    scanf("%d",&n);
      |    ~~~~~^~~~~~~~~

ソースコード

diff #

#include <stdio.h>
#include <math.h>

int main(){
   int n = 0;
   scanf("%d",&n);
   
   long unsigned int a = pow(10, n);
   for(int i=1; i<=a; i++){
       if(a%i==0){
           printf("%d\n",i);
       }
   }
}
0