【每日一题】打卡 6

原题链接:Problem - B - Codeforces

​
#define _CRT_SECURE_NO_WARNINGS 1
#include 
#include 
#include 
#include 
#include
#include
#include
#include
#define FOR(a,b) for(int i=a;i<=b;i++)
#define ROF(a,b) for(int i=a;i>=b;i--)
#define FORj(a,b) for(int j=a;j<=b;j++)
#define ROFj(a,b) for(int j=a;j>=b;j--)
#define FORk(a,b) for(int k=a;k<=b;k++)
#define ROFk(a,b) for(int k=a;k>=b;k--)
#define mem(i,a) memset(i,a,sizeof(i))
#define ll long long
#define inf 0x3f3f3f3f
#define lson l,m,rt<<1
#define rson m+1,r,rt<<1|1
#define int long long
#define yes cout<<"YES"<> n >> k;
	FOR(1, k)cin >> a[i];
	if (k == 1) {
		cout << "Yes\n";
		return;
	}
	ROF(k, 2) a[i] = a[i] - a[i - 1];
	FOR(3,k){
		if(a[i]> _;
	while (_--)
		solve();
	return 0;
}

​

你可能感兴趣的:(算法)