| # | 제출 시각 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
|---|---|---|---|---|---|---|---|
| 100100 | cheeheng | Broken Device (JOI17_broken_device) | C++14 | 77 ms | 3072 KiB |
이 제출은 이전 버전의 oj.uz에서 채점하였습니다. 현재는 제출 당시와는 다른 서버에서 채점을 하기 때문에, 다시 제출하면 결과가 달라질 수도 있습니다.
#include "Annalib.h"
#include <bits/stdc++.h>
using namespace std;
//void Set( int pos, int bit );
void Anna( int N, long long X, int K, int P[] ){
for(int i = 0; i < 60; i ++){
if(binary_search(P, P+K, 2*i)){
Set(2*i+1, (X&(1LL << i)) != 0);
Set(2*i, 0);
}else{
Set(2*i, (X&(1LL << i)) != 0);
Set(2*i+1, 0);
}
}
for(int i = 120; i < 150; i ++){
Set(i, 0);
}
}
#include "Brunolib.h"
#include <bits/stdc++.h>
using namespace std;
long long Bruno( int N, int A[] ){
long long X = 0;
for(int i = 0; i < 60; i ++){
if(A[2*i] || A[2*i+1]){
X |= (1LL<<i);
}
}
//printf("%lld\n", X);
return X;
}
| # | Verdict | Execution time | Memory | Grader output |
|---|---|---|---|---|
| Fetching results... | ||||
