# | 제출 시각 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
---|---|---|---|---|---|---|---|
249819 | Blagojce | Broken Device (JOI17_broken_device) | C++11 | 52 ms | 3584 KiB |
이 제출은 이전 버전의 oj.uz에서 채점하였습니다. 현재는 제출 당시와는 다른 서버에서 채점을 하기 때문에, 다시 제출하면 결과가 달라질 수도 있습니다.
#include <bits/stdc++.h>
#define fr(i, n, m) for(int i = (n); i < (m); i ++)
#define pb push_back
#define st first
#define nd second
#define pq priority_queue
#define all(x) begin(x), end(x)
#include <time.h>
#include <cmath>
using namespace std;
typedef long long ll;
typedef long double ld;
typedef pair<int,ll> pii;
const int i_inf = 1e9;
const ll inf = 1e18;
const ll mod = 1000000007;
const ld eps = 1e-13;
const ld pi = 3.14159265359;
mt19937 _rand(time(NULL));
clock_t timer = clock();
const int mxn = 5e5;
#include "Annalib.h"
void Anna(int N, long long X, int K, int P[]){
bool ok[150];
memset(ok, false, sizeof(ok));
fr(i, 0, K) ok[P[i]] = true;
fr(i, 0, 75){
if(!ok[i] && !ok[i+75]){
Set(i, 1);
}
else{
Set(i, 0);
}
}
int tmp = 0;
fr(i, 0, 75){
if(tmp>60){
Set(i+75, 0);
continue;
}
if(!ok[i]&&!ok[i+75]){
if(X&(1LL<<tmp)){
Set(i+75, 1);
}
else{
Set(i+75, 0);
}
tmp ++;
}
else{
Set(i+75, 0);
}
}
}
#include <bits/stdc++.h>
#define fr(i, n, m) for(int i = (n); i < (m); i ++)
#define pb push_back
#define st first
#define nd second
#define pq priority_queue
#define all(x) begin(x), end(x)
#include <time.h>
#include <cmath>
using namespace std;
typedef long long ll;
typedef long double ld;
typedef pair<int,ll> pii;
const int i_inf = 1e9;
const ll inf = 1e18;
const ll mod = 1000000007;
const ld eps = 1e-13;
const ld pi = 3.14159265359;
mt19937 _rand(time(NULL));
clock_t timer = clock();
const int mxn = 5e5;
#include "Brunolib.h"
long long Bruno( int N, int A[]){
vector<int> pos;
fr(i, 0, 75) if(A[i] == 1) pos.pb(i+75);
ll ret = 0;
fr(i, 0, pos.size()){
if(A[pos[i]] == 1) ret |= (1LL<<i);
}
return ret;
}
컴파일 시 표준 에러 (stderr) 메시지
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |