結果

問題 No.542 1円玉と5円玉
ユーザー cureskolcureskol
提出日時 2020-04-18 02:54:59
言語 C++14
(gcc 12.3.0 + boost 1.83.0)
結果
WA  
実行時間 -
コード長 775 bytes
コンパイル時間 1,626 ms
コンパイル使用メモリ 170,832 KB
実行使用メモリ 4,384 KB
最終ジャッジ日時 2023-07-27 06:57:44
合計ジャッジ時間 2,607 ms
ジャッジサーバーID
(参考情報)
judge14 / judge11
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 WA -
testcase_02 WA -
testcase_03 AC 1 ms
4,380 KB
testcase_04 WA -
testcase_05 WA -
testcase_06 WA -
testcase_07 WA -
testcase_08 WA -
testcase_09 WA -
testcase_10 WA -
testcase_11 WA -
testcase_12 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

//FA専用
#include <bits/stdc++.h>
using namespace std;
#define rep(i,n) for(int i=0;i<n;i++)
#define int long long
const long long LINF=1e18;
template<typename T>
void chmax(T &a,T b){
  if(a<b)a=b;
}
template<typename T>
void chmin(T &a,T b){
  if(a>b)a=b;
}
template<typename T>
void fin(T a){
  cout<<a<<endl;
  exit(0);
}

bool prime(int a){
    for(int i=2;i*i<=a;i++)if(a%i==0)return false;
    return 1;
}
bool hei(int a){
    for(int i=2;i*i<=a;i++)if(i*i==a)return 1;
    return 0;
}
bool rippo(int a){
    for(int i=2;i*i<=a;i++)if(i*i*i==a)return 1;
    return 0;
}
bool kanzen(int a){
    return a==6||a==28;
}

signed main(){
    int a,b;cin>>a>>b;set<int> s;
    for(int i=0;i<=a;i++)for(int j=0;j<=b;j++)s.insert(a+b*5);
    for(int p:s)if(p)cout<<p<<endl;
}
0