# | TimeUTC-0 | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
967169 | AlperenT_ | Building 4 (JOI20_building4) | C++14 | 189 ms | 69024 KiB |
This submission is migrated from previous version of oj.uz, which used different machine for grading. This submission may have different result if resubmitted.
#include <bits/stdc++.h>
#pragma GCC optimize("O3,unroll-loops")
#define pb push_back
#define F first
#define S second
#define ld long double
#define all(a) a.begin(),a.end()
#define pii pair <int,int>
#define int long long
#define PII pair<pii , pii>
#define sz(v) (int)v.size()
#define rep(i , a , b) for(int i=a;i <= (b);i++)
#define per(i , a , b) for(int i=a;i >= (b);i--)
#define deb(x) cout <<#x << " : " << x << "\n" ;
using namespace std ;
mt19937 rng(chrono::steady_clock::now().time_since_epoch().count());
const int maxn = 1e6+10 + 10, inf = 1e9+10 , mod = 1e9 + 7 ;
pii dp[maxn][2];
int a[2][maxn];
string s ;
pii mrg(pii a, pii b){
return {min(a.F,b.F) , max(a.S,b.S)};
}
void sl(int i ,int t ,int x){
if(i==0)return ;
if(t==1)x--;
s += (t==1 ? "B" : "A") ;
rep(j , 0 ,1){
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |