結果
問題 |
No.677 10^Nの約数
|
ユーザー |
|
提出日時 | 2018-04-27 22:23:32 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 304 bytes |
コンパイル時間 | 677 ms |
コンパイル使用メモリ | 74,864 KB |
実行使用メモリ | 6,944 KB |
最終ジャッジ日時 | 2024-06-27 21:48:02 |
合計ジャッジ時間 | 1,364 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 8 WA * 9 |
コンパイルメッセージ
main.cpp:7:1: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type] 7 | main() | ^~~~
ソースコード
#include<iostream> #include<algorithm> #include<vector> using namespace std; int n; vector<long long>a; main() { cin>>n; long long s=1,t; for(int i=0;i<=n;i++) { t=1; for(int j=0;j<=n;j++) { a.push_back(s*t); t*=5; } s*=2; } sort(a.begin(),a.end()); for(int it:a)cout<<it<<endl; }