結果
| 問題 |
No.542 1円玉と5円玉
|
| コンテスト | |
| ユーザー |
kokoa1046
|
| 提出日時 | 2017-09-04 14:17:12 |
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 2,000 ms |
| コード長 | 362 bytes |
| コンパイル時間 | 678 ms |
| コンパイル使用メモリ | 63,572 KB |
| 実行使用メモリ | 5,248 KB |
| 最終ジャッジ日時 | 2024-11-06 20:52:16 |
| 合計ジャッジ時間 | 1,346 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 10 |
ソースコード
#include <iostream>
using namespace std;
#include <set>
int main(void){
// Here your code !
int a,b;
cin>>a;
cin>>b;
set<int> st;
for(int i =0;i<=a;i++){
for(int j =0;j<=b;j++){
st.insert(5*j+i);
}
}
st.erase(0);
for(auto x : st) {
cout << x << "\n"; // 要素を順に表示
}
}
kokoa1046