結果
問題 | No.542 1円玉と5円玉 |
ユーザー |
![]() |
提出日時 | 2017-07-14 22:25:24 |
言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
結果 |
AC
|
実行時間 | 2 ms / 2,000 ms |
コード長 | 546 bytes |
コンパイル時間 | 681 ms |
コンパイル使用メモリ | 73,608 KB |
実行使用メモリ | 5,248 KB |
最終ジャッジ日時 | 2024-10-07 22:39:20 |
合計ジャッジ時間 | 1,375 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 10 |
ソースコード
#define _USE_MATH_DEFINES #include <iostream> #include <math.h> #include <climits> #include <algorithm> #include <functional> #include <vector> #include <queue> #include <map> #include <set> #include <string> using namespace std; typedef long long ll; typedef pair<ll, ll> P; const ll MD = 1000000007; /* sample input */ int main() { int a, b; cin >> a >> b; for (int i = 0; i <= b; i++) { for (int j = 0; j <= a; j++) { if (i<b && j >4) break; if (!(i == 0 && j == 0)) { cout << i * 5 + j << endl; } } } return 0; }