結果
問題 | No.542 1円玉と5円玉 |
ユーザー |
|
提出日時 | 2018-01-11 22:29:02 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 3 ms / 2,000 ms |
コード長 | 351 bytes |
コンパイル時間 | 1,937 ms |
コンパイル使用メモリ | 170,636 KB |
実行使用メモリ | 5,248 KB |
最終ジャッジ日時 | 2024-12-23 16:28:31 |
合計ジャッジ時間 | 2,326 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 10 |
ソースコード
#include <bits/stdc++.h> using namespace std; #define REP(i, n) for(int i = 0; i < n; i++) int main() { ios::sync_with_stdio(false); cin.tie(0); cout.tie(0); int a, b; cin >> a >> b; set<int> s; REP(i, a + 1) REP(j, b + 1) s.insert(i + 5 * j); for (const auto &i: s) if (i != 0) cout << i << endl; return 0; }