結果
問題 | No.542 1円玉と5円玉 |
ユーザー | face4 |
提出日時 | 2018-04-26 21:04:27 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 3 ms / 2,000 ms |
コード長 | 251 bytes |
コンパイル時間 | 497 ms |
コンパイル使用メモリ | 62,976 KB |
実行使用メモリ | 5,376 KB |
最終ジャッジ日時 | 2024-06-27 21:13:30 |
合計ジャッジ時間 | 1,174 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 10 |
ソースコード
#include<iostream>using namespace std;int one, five;bool make(int val){return one >= val - val/5*5;}int main(){cin >> one >> five;for(int i = 1; i <= one+5*five; i++){if(make(i)) cout << i << endl;}return 0;}