結果
問題 | No.542 1円玉と5円玉 |
ユーザー |
![]() |
提出日時 | 2017-07-14 22:31:45 |
言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
結果 |
AC
|
実行時間 | 2 ms / 2,000 ms |
コード長 | 336 bytes |
コンパイル時間 | 473 ms |
コンパイル使用メモリ | 56,240 KB |
実行使用メモリ | 5,248 KB |
最終ジャッジ日時 | 2024-10-07 23:10:18 |
合計ジャッジ時間 | 1,187 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 10 |
ソースコード
#include <iostream> using namespace std; int main(void){ int a,b; cin >> a >> b; for(int i=0;i<=b;i++){ if(i!=b){ for(int j=0;j<=a&&j<=4;j++){ if(i*5+j!=0) cout << i*5+j << endl; } } else{ for(int j=0;j<=a;j++){ if(i*5+j!=0) cout << i*5+j << endl; } } } return 0; }