0_0_18593943_14141\Main.java:1: 错误: 非法字符: '#'
#include<stdio.h>
^
0_0_18593943_14141\Main.java:1: 错误: 需要class, interface或enum
#include<stdio.h>
^
0_0_18593943_14141\Main.java:2: 错误: 非法字符: '#'
#include<cstring>
^
0_0_18593943_14141\Main.java:3: 错误: 非法字符: '#'
#include<time.h>
^
0_0_18593943_14141\Main.java:4: 错误: 非法字符: '#'
#include<algorithm>
^
0_0_18593943_14141\Main.java:5: 错误: 非法字符: '#'
#include<string.h>
^
0_0_18593943_14141\Main.java:6: 错误: 非法字符: '#'
#include<iostream>
^
0_0_18593943_14141\Main.java:7: 错误: 非法字符: '#'
#include<cstdlib>
^
0_0_18593943_14141\Main.java:8: 错误: 非法字符: '#'
#include<cmath>
^
0_0_18593943_14141\Main.java:9: 错误: 非法字符: '#'
#include<map>
^
0_0_18593943_14141\Main.java:10: 错误: 非法字符: '#'
#include<queue>
^
0_0_18593943_14141\Main.java:11: 错误: 非法字符: '#'
#include<ctype.h>
^
0_0_18593943_14141\Main.java:12: 错误: 非法字符: '#'
#include<numeric>
^
0_0_18593943_14141\Main.java:13: 错误: 非法字符: '#'
#include<set>
^
0_0_18593943_14141\Main.java:14: 错误: 非法字符: '#'
#include<vector>
^
0_0_18593943_14141\Main.java:15: 错误: 非法字符: '#'
#include<stack>
^
0_0_18593943_14141\Main.java:18: 错误: 非法字符: '#'
#define mem(x,y) memset(x,y,sizeof(x))
^
0_0_18593943_14141\Main.java:18: 错误: 需要class, interface或enum
#define mem(x,y) memset(x,y,sizeof(x))
^
0_0_18593943_14141\Main.java:19: 错误: 非法字符: '#'
#define debug puts("-------------------");
^
0_0_18593943_14141\Main.java:20: 错误: 非法字符: '#'
#define uLL unsigned long long
^
0_0_18593943_14141\Main.java:20: 错误: 需要class, interface或enum
#define uLL unsigned long long
^
0_0_18593943_14141\Main.java:21: 错误: 非法字符: '#'
#define LL long long
^
0_0_18593943_14141\Main.java:22: 错误: 非法字符: '#'
#define T_T int _; scanf("%d",&_); for(int _T=1;_T<=_;_T++)
^
0_0_18593943_14141\Main.java:22: 错误: 需要class, interface或enum
#define T_T int _; scanf("%d",&_); for(int _T=1;_T<=_;_T++)
^
0_0_18593943_14141\Main.java:22: 错误: 需要class, interface或enum
#define T_T int _; scanf("%d",&_); for(int _T=1;_T<=_;_T++)
^
0_0_18593943_14141\Main.java:22: 错误: 需要class, interface或enum
#define T_T int _; scanf("%d",&_); for(int _T=1;_T<=_;_T++)
^
0_0_18593943_14141\Main.java:22: 错误: 需要class, interface或enum
#define T_T int _; scanf("%d",&_); for(int _T=1;_T<=_;_T++)
^
0_0_18593943_14141\Main.java:24: 错误: 需要class, interface或enum
const long long INF = 0x7ffffffffffffffll;///比LL最大值少一个f!!!
^
0_0_18593943_14141\Main.java:25: 错误: 需要class, interface或enum
const int mod = 1e9 + 7;
^
0_0_18593943_14141\Main.java:26: 错误: 需要class, interface或enum
const int maxn = 1e5 + 5;
^
0_0_18593943_14141\Main.java:27: 错误: 需要class, interface或enum
const int maxv = 1e3 + 5;
^
0_0_18593943_14141\Main.java:28: 错误: 需要class, interface或enum
const double pi = acos(-1.0);
^
0_0_18593943_14141\Main.java:29: 错误: 需要class, interface或enum
const double eps = 1e-9;
^
0_0_18593943_14141\Main.java:31: 错误: 需要class, interface或enum
char str[20005];
^
0_0_18593943_14141\Main.java:32: 错误: 需要class, interface或enum
LL a[20005];
^
0_0_18593943_14141\Main.java:33: 错误: 需要class, interface或enum
int cnt;
^
0_0_18593943_14141\Main.java:34: 错误: 需要class, interface或enum
set<LL>ss;
^
0_0_18593943_14141\Main.java:36: 错误: 需要class, interface或enum
void init(){
^
0_0_18593943_14141\Main.java:37: 错误: 需要class, interface或enum
ss.clear();cnt = 0;
^
0_0_18593943_14141\Main.java:38: 错误: 需要class, interface或enum
int len = strlen(str);
^
0_0_18593943_14141\Main.java:39: 错误: 需要class, interface或enum
for(int i=1; i<=min(32, len); i++){
^
0_0_18593943_14141\Main.java:39: 错误: 需要class, interface或enum
for(int i=1; i<=min(32, len); i++){
^
0_0_18593943_14141\Main.java:39: 错误: 需要class, interface或enum
for(int i=1; i<=min(32, len); i++){
^
0_0_18593943_14141\Main.java:41: 错误: 需要class, interface或enum
for(int j=0; j<i; j++){
^
0_0_18593943_14141\Main.java:41: 错误: 需要class, interface或enum
for(int j=0; j<i; j++){
^
0_0_18593943_14141\Main.java:41: 错误: 需要class, interface或enum
for(int j=0; j<i; j++){
^
0_0_18593943_14141\Main.java:43: 错误: 需要class, interface或enum
}
^
0_0_18593943_14141\Main.java:45: 错误: 需要class, interface或enum
if(ss.find(xd) == ss.end()){
^
0_0_18593943_14141\Main.java:47: 错误: 需要class, interface或enum
a[cnt++] = xd;
^
0_0_18593943_14141\Main.java:48: 错误: 需要class, interface或enum
}
^
0_0_18593943_14141\Main.java:50: 错误: 需要class, interface或enum
for(int j=i; j<len; j++){
^
0_0_18593943_14141\Main.java:50: 错误: 需要class, interface或enum
for(int j=i; j<len; j++){
^
0_0_18593943_14141\Main.java:50: 错误: 需要class, interface或enum
for(int j=i; j<len; j++){
^
0_0_18593943_14141\Main.java:52: 错误: 需要class, interface或enum
if(str[j - i] == 'B') num -= sub;
^
0_0_18593943_14141\Main.java:53: 错误: 需要class, interface或enum
xd = (1LL << i) + num;
^
0_0_18593943_14141\Main.java:54: 错误: 需要class, interface或enum
if(ss.find(xd) == ss.end()){
^
0_0_18593943_14141\Main.java:56: 错误: 需要class, interface或enum
a[cnt++] = xd;
^
0_0_18593943_14141\Main.java:57: 错误: 需要class, interface或enum
}
^
0_0_18593943_14141\Main.java:63: 错误: 需要class, interface或enum
LL tmp = x - 1 - aim;
^
0_0_18593943_14141\Main.java:64: 错误: 需要class, interface或enum
if(a[aim] == x) tmp--;
^
0_0_18593943_14141\Main.java:65: 错误: 需要class, interface或enum
if(tmp < k) return -1;
^
0_0_18593943_14141\Main.java:66: 错误: 需要class, interface或enum
else{
^
0_0_18593943_14141\Main.java:68: 错误: 需要class, interface或enum
return 1;
^
0_0_18593943_14141\Main.java:69: 错误: 需要class, interface或enum
}
^
0_0_18593943_14141\Main.java:74: 错误: 需要class, interface或enum
LL l = 1, r = (1LL << 33) - 1, mid;
^
0_0_18593943_14141\Main.java:75: 错误: 需要class, interface或enum
LL res = r;
^
0_0_18593943_14141\Main.java:76: 错误: 需要class, interface或enum
while(l < r){
^
0_0_18593943_14141\Main.java:78: 错误: 需要class, interface或enum
int xd = can(mid, k);
^
0_0_18593943_14141\Main.java:79: 错误: 需要class, interface或enum
if(xd == 0) r = mid - 1;
^
0_0_18593943_14141\Main.java:80: 错误: 需要class, interface或enum
else if(xd == 1) r = mid;
^
0_0_18593943_14141\Main.java:81: 错误: 需要class, interface或enum
else l = mid + 1;
^
0_0_18593943_14141\Main.java:82: 错误: 需要class, interface或enum
}
^
0_0_18593943_14141\Main.java:84: 错误: 需要class, interface或enum
return res;
^
0_0_18593943_14141\Main.java:85: 错误: 需要class, interface或enum
}
^
0_0_18593943_14141\Main.java:94: 错误: 需要class, interface或enum
init();
^
0_0_18593943_14141\Main.java:95: 错误: 需要class, interface或enum
int n,k;
^
0_0_18593943_14141\Main.java:96: 错误: 需要class, interface或enum
scanf("%d", &n);
^
0_0_18593943_14141\Main.java:97: 错误: 需要class, interface或enum
for(int i=0; i<n; i++){
^
0_0_18593943_14141\Main.java:97: 错误: 需要class, interface或enum
for(int i=0; i<n; i++){
^
0_0_18593943_14141\Main.java:97: 错误: 需要class, interface或enum
for(int i=0; i<n; i++){
^
0_0_18593943_14141\Main.java:99: 错误: 需要class, interface或enum
LL ans = did(k);
^
0_0_18593943_14141\Main.java:100: 错误: 需要class, interface或enum
int len = 0;
^
0_0_18593943_14141\Main.java:101: 错误: 需要class, interface或enum
LL tmp = ans;
^
0_0_18593943_14141\Main.java:102: 错误: 需要class, interface或enum
while(tmp){
^
0_0_18593943_14141\Main.java:104: 错误: 需要class, interface或enum
tmp >>= 1;
^
0_0_18593943_14141\Main.java:105: 错误: 需要class, interface或enum
}
^
0_0_18593943_14141\Main.java:107: 错误: 需要class, interface或enum
if(ans == 0) puts("A");
^
0_0_18593943_14141\Main.java:108: 错误: 需要class, interface或enum
else{
^
0_0_18593943_14141\Main.java:109: 错误: 需要class, interface或enum
for(int i=len-2; i>=0; i--){
^
0_0_18593943_14141\Main.java:109: 错误: 需要class, interface或enum
for(int i=len-2; i>=0; i--){
^
0_0_18593943_14141\Main.java:112: 错误: 需要class, interface或enum
}
^
0_0_18593943_14141\Mai
|