結果
問題 | No.542 1円玉と5円玉 |
ユーザー |
|
提出日時 | 2020-06-02 16:17:37 |
言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 3 ms / 2,000 ms |
コード長 | 277 bytes |
コンパイル時間 | 3,371 ms |
コンパイル使用メモリ | 197,756 KB |
最終ジャッジ日時 | 2025-01-10 20:35:55 |
ジャッジサーバーID (参考情報) |
judge2 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 10 |
ソースコード
#include<bits/stdc++.h> using namespace std; int main(){ cin.tie(0),ios::sync_with_stdio(false); int a,b; cin>>a>>b; set<int>st; for(int one=0;one<=a;++one){ for(int five=0;five<=b;++five){ st.insert(one+five*5); } } st.erase(0); for(auto&&i:st)cout<<i<<"\n"s; }