AIM Tech Round 5 (rated, Div. 1 + Div. 2) BUnnatural Conditions

Posted awcxv

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了AIM Tech Round 5 (rated, Div. 1 + Div. 2) BUnnatural Conditions相关的知识,希望对你有一定的参考价值。

【链接】 我是链接,点我呀:)
【题意】


在这里输入题意

【题解】


让a+b的和为100000000...0这样的形式就好了
这样s(a+b)=1<=m就肯定成立了(m>=1)
然后至于s(a)>=n和s(b)>=n
随便写个a=1111111...112然后b=8888888...888这样就好

【代码】

#include <bits/stdc++.h>
#define LL long long
#define rep1(i,a,b) for (int i = a;i <= b;i++)
#define rep2(i,a,b) for (int i = a;i >= b;i--)
#define all(x) x.begin(),x.end()
#define pb push_back
#define lson l,mid,rt<<1
#define ri(x) scanf("%d",&x)
#define rl(x) scanf("%lld",&x)
#define rs(x) scanf("%s",x)
#define rson mid+1,r,rt<<1|1
using namespace std;

const double pi = acos(-1);
const int dx[4] = {0,0,1,-1};
const int dy[4] = {1,-1,0,0};
const int N = 200;

char s[N+10][N+10];
int n,m;

int main(){
    #ifdef LOCAL_DEFINE
        freopen("rush_in.txt", "r", stdin);
    #endif
    rep1(i,1,2000) cout<<8;cout<<endl;
    rep1(i,1,1999) cout<<1;cout<<2<<endl;
    return 0;
}

以上是关于AIM Tech Round 5 (rated, Div. 1 + Div. 2) BUnnatural Conditions的主要内容,如果未能解决你的问题,请参考以下文章

AIM Tech Round 5 (rated, Div. 1 + Div. 2) BUnnatural Conditions

AIM Tech Round 5 (rated, Div. 1 + Div. 2) CRectangles

AIM Tech Round 5 (rated, Div. 1 + Div. 2) A Find Square

AIM Tech Round 5 (rated, Div. 1 + Div. 2) 总结题解往前或往后翻,不在这

AIM Tech Round 5 1028cf(A-E)

Codeforces AIM Tech Round3