QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#168977 | #6661. 야유회 | Cyanmond | 0 | 0ms | 0kb | C++17 | 1.1kb | 2023-09-09 09:17:54 | 2023-09-09 09:17:54 |
answer
// Is the judge avaliable ???
// from penguinman
#include "workshop.h"
#include <bits/stdc++.h>
using std::cin;
using std::cout;
using std::endl;
using std::string;
using std::vector;
using ll = int;
using vi = vector<ll>;
using vii = vector<vi>;
using pii = std::pair<ll,ll>;
#define rep(i,j,k) for(ll i=ll(j); i<ll(k); i++)
#define REP(i,j,k) for(ll i=ll(j); i<=ll(k); i++)
#define per(i,j,k) for(ll i=ll(j); i>=ll(k); i--)
#define ln "\n"
#define all(a) a.begin(),a.end()
#define pb emplace_back
#define mp std::make_pair
#define mtp std::make_tuple
void init() { }
int f(int x, int y){
constexpr int LOG = 20;
rep(i,0,LOG){
ll a = (x & (1<<i));
ll b = (y & (1<<i));
if(a != b){
int ret = i*2;
if(a) ret++;
return ret;
}
}
}
int morning(int my_num, int right_num) {
return f(my_num, right_num);
}
int afternoon(int left_num, int my_num, int right_num) {
return f(f(left_num, my_num), f(my_num, right_num));
}
int evening(int left_num, int my_num, int right_num) {
return f(f(left_num, my_num), f(my_num, right_num));
}
Details
Tip: Click on the bar to expand more detailed information
Subtask #1:
score: 0
Dangerous Syscalls
Test #1:
score: 0
Dangerous Syscalls
input:
2dc2b1d4-8de2-INPUT-bcd3-aa55b691fdb3 1 2 40 40 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 40 0 3 1 5 7 9 6 4 2 10 8 23 21 25 27 29 26 24 22 30 28 13 11 15 17 19 16 14 12 20 18 33 31 35 37 39 36 34 32 38
output:
dd180566-1d37-PIPE-b85d-c176ae85727d 5 2 28 28 28 28 89 88 8b 8a 8d 8c 8f 8e 81 80 83 82 85 84 87 86 99 98 9b 9a 9d 9c 9f 9e 91 90 93 92 95 94 97 96 a9 a8 ab aa ad ac af ae 00000089 00000088 00000089 00000088 00000089 00000088 00000089 00000088 00000089 00000088 00000089 00000088 00000089 00000088 ...
input:
dd180566-1d37-PIPE-b85d-c176ae85727d 5 2 28 28 28 28 89 88 8b 8a 8d 8c 8f 8e 81 80 83 82 85 84 87 86 99 98 9b 9a 9d 9c 9f 9e 91 90 93 92 95 94 97 96 a9 a8 ab aa ad ac af ae 00000089 00000088 00000089 00000088 00000089 00000088 00000089 00000088 00000089 00000088 00000089 00000088 00000089 00000088 ...
output:
4468cc07-dabe-OUTPUT-ba95-7ddd49645c94 5
result:
Subtask #2:
score: 0
Dangerous Syscalls
Test #8:
score: 0
Dangerous Syscalls
input:
2dc2b1d4-8de2-INPUT-bcd3-aa55b691fdb3 2 2 40 40 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 40 0 3 1 5 7 9 6 4 2 10 8 23 21 25 27 29 26 24 22 30 28 13 11 15 17 19 16 14 12 20 18 33 31 35 37 39 36 34 32 38
output:
dd180566-1d37-PIPE-b85d-c176ae85727d 5 2 28 28 28 28 89 88 8b 8a 8d 8c 8f 8e 81 80 83 82 85 84 87 86 99 98 9b 9a 9d 9c 9f 9e 91 90 93 92 95 94 97 96 a9 a8 ab aa ad ac af ae 00000089 00000088 00000089 00000088 00000089 00000088 00000089 00000088 00000089 00000088 00000089 00000088 00000089 00000088 ...
input:
dd180566-1d37-PIPE-b85d-c176ae85727d 5 2 28 28 28 28 89 88 8b 8a 8d 8c 8f 8e 81 80 83 82 85 84 87 86 99 98 9b 9a 9d 9c 9f 9e 91 90 93 92 95 94 97 96 a9 a8 ab aa ad ac af ae 00000089 00000088 00000089 00000088 00000089 00000088 00000089 00000088 00000089 00000088 00000089 00000088 00000089 00000088 ...
output:
4468cc07-dabe-OUTPUT-ba95-7ddd49645c94 5