# | 제출 시각UTC-0 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
---|---|---|---|---|---|---|---|
874039 | vjudge1 | Lamps (JOI19_lamps) | C++17 | 356 ms | 89704 KiB |
이 제출은 이전 버전의 oj.uz에서 채점하였습니다. 현재는 제출 당시와는 다른 서버에서 채점을 하기 때문에, 다시 제출하면 결과가 달라질 수도 있습니다.
#include <bits/stdc++.h>
#define file_io freopen("input.txt", "r", stdin);freopen("output.txt", "w", stdout);
#define fast_io ios::sync_with_stdio(false);cin.tie(0);
#define what(x) cerr << #x << " is " << x << '\n';
#define kill(x) {cout << x << '\n'; return 0;}
#define all(x) (x).begin(), (x).end()
#define pii pair<int, int>
#define pll pair<ll, ll>
#define pb push_back
#define ll long long
#define F first
#define S second
const ll inf = 1e18, mod = 1e9 + 7, delta = 1e9 + 9, SQ = 450, P = 6065621; //998244353
using namespace std;
const ll N = 5e5 + 10, LG = 20;
ll n, dis[N], ps0[N][20], ps1[N][20], psr[N][20];
queue<ll> q;
bool mark[N];
int main() {
fast_io;
string x, y;
cin >> n >> x >> y;
ll a = 0, b = 0;
for (int i = n - 1, j = 0; i >= 0; i--, j++)
a += (x[i] == '1') * (1 << j);
for (int i = n - 1, j = 0; i >= 0; i--, j++)
b += (y[i] == '1') * (1 << j);
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |