結果
問題 |
No.677 10^Nの約数
|
ユーザー |
![]() |
提出日時 | 2018-06-15 19:43:03 |
言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 195 bytes |
コンパイル時間 | 154 ms |
コンパイル使用メモリ | 23,040 KB |
実行使用メモリ | 6,944 KB |
最終ジャッジ日時 | 2024-06-30 14:55:04 |
合計ジャッジ時間 | 879 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | WA * 2 |
other | WA * 17 |
コンパイルメッセージ
main.cpp: In function ‘int main()’: main.cpp:5:10: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 5 | scanf("%d",&n); | ~~~~~^~~~~~~~~ main.cpp:4:13: warning: ‘n’ is used uninitialized [-Wuninitialized] 4 | d=(10^(n+1)); | ~~^~~ main.cpp:3:9: note: ‘n’ declared here 3 | int n,d,i; | ^
ソースコード
#include<stdio.h> int main(void){ int n,d,i; d=(10^(n+1)); scanf("%d",&n); for(i=1;i<d;i++){ if((10^n)%i==0){ printf("%d\n",i); } } return 0; }