結果
問題 | No.542 1円玉と5円玉 |
ユーザー | sekiya9311 |
提出日時 | 2017-07-14 22:23:12 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 2 ms / 2,000 ms |
コード長 | 319 bytes |
コンパイル時間 | 1,410 ms |
コンパイル使用メモリ | 171,156 KB |
実行使用メモリ | 6,820 KB |
最終ジャッジ日時 | 2024-10-07 22:05:18 |
合計ジャッジ時間 | 1,947 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 10 |
ソースコード
#include <bits/stdc++.h> #define DEBUG(C) cerr << #C << " = " << C << endl using namespace std; int main() { int a, b; cin >> a >> b; set<int> se; for (int i = 0; i <= a; i++) { for (int j = 0; j <= b; j++) { se.insert(i + 5 * j); } } for (int e : se) { if (e) printf("%d\n", e); } return 0; }