結果
| 問題 |
No.677 10^Nの約数
|
| コンテスト | |
| ユーザー |
ike_nyan
|
| 提出日時 | 2018-04-30 04:22:30 |
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
| 結果 |
TLE
|
| 実行時間 | - |
| コード長 | 206 bytes |
| コンパイル時間 | 184 ms |
| コンパイル使用メモリ | 30,208 KB |
| 実行使用メモリ | 35,584 KB |
| 最終ジャッジ日時 | 2024-06-27 23:46:44 |
| 合計ジャッジ時間 | 4,843 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / 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);
| ~~~~~^~~~~~~~~
ソースコード
#include <stdio.h>
#include <math.h>
int main(){
int n = 0;
scanf("%d",&n);
long int a = pow(10, n);
for(int i=1; i<=a; i++){
if(a%i==0){
printf("%d\n",i);
}
}
}
ike_nyan