题目中给的交互库剪贴板链接由于系统维护看不到了,所以我手写了个交互库给大家调试,不保证没锅
#include<cstdio>
using namespace std;
int n,c,k,cnt;
extern "C" {
extern int Chtholly(int n,int c);
int Seniorious(int x) {
cnt++;
if(k<x) return 1;
if(k>x) return -1;
if(k==x) return 0;
}
}
int main() {
scanf("%d %d %d",&n,&c,&k);
printf("%d %d",Chtholly(n,c),cnt);
return 0;
}