結果
問題 | No.677 10^Nの約数 |
ユーザー |
|
提出日時 | 2018-04-27 22:23:56 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 3 ms / 2,000 ms |
コード長 | 310 bytes |
コンパイル時間 | 707 ms |
コンパイル使用メモリ | 74,744 KB |
実行使用メモリ | 6,944 KB |
最終ジャッジ日時 | 2024-06-27 21:48:13 |
合計ジャッジ時間 | 1,430 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 17 |
コンパイルメッセージ
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(long long it:a)cout<<it<<endl;}