题目
A - Exchange
题目链接 A - Exchange (atcoder.jp)
题解
这道题要每次都从现有的最大钱币开始取。
代码
#include<bits/stdc++.h>
using namespace std;
typedef long long LL;
int ar[6];
int br[6]={1,5,10,50,100,500};
int main(){
ios::sync_with_stdio(0),
题目
题目链接 A - Exchange (atcoder.jp)
题解
这道题要每次都从现有的最大钱币开始取。
代码
#include<bits/stdc++.h>
using namespace std;
typedef long long LL;
int ar[6];
int br[6]={1,5,10,50,100,500};
int main(){
ios::sync_with_stdio(0),