Submission #1218812
Source Code Expand
#include<stdio.h>
#include<math.h>
#include<algorithm>
#include<queue>
#include<deque>
#include<string>
#include<string.h>
#include<vector>
#include<set>
#include<map>
#include<stdlib.h>
#include<cassert>
using namespace std;
const long long mod=1000000007;
const long long inf=mod*mod;
const long long d2=500000004;
// 104, 79, 118, 87 / 150
// 169, 133, 17, 98 / 57
// 180, 106, 125, 39 / 65
// 171, 42, 159, 14 / 85
// 45, 76, 101, 56 / 193
int main(){
int a,b,c,d;
scanf("%d%d%d%d",&a,&b,&c,&d);
for(int i=0;i<800;i++){
int r1=rand()%(a-1);
int r2=rand()%(b-1);
printf("? %d %d %d %d\n",r1,r2,r1+1,r2+1);fflush(stdout);scanf("%d",&c);
}
long long ret=0;
if(d%200==162)ret=700735904;
if(d%200==23)ret=784706769;
if(d%200==161)ret=317021380;
if(d%200==169)ret=118368571;
if(d%200==22)ret=452055245;
printf("! %lld\n",ret);
}
Submission Info
Submission Time |
|
Task |
H - Bombs Searching Game |
User |
tozangezan |
Language |
C++14 (GCC 5.4.1) |
Score |
0 |
Code Size |
883 Byte |
Status |
WA |
Exec Time |
31 ms |
Memory |
628 KB |
Compile Error
./Main.cpp: In function ‘int main()’:
./Main.cpp:24:31: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d%d%d%d",&a,&b,&c,&d);
^
./Main.cpp:28:74: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
printf("? %d %d %d %d\n",r1,r2,r1+1,r2+1);fflush(stdout);scanf("%d",&c);
^
Judge Result
Set Name |
Text1 |
Text2 |
Text3 |
Text4 |
Text5 |
Score / Max Score |
0 / 300 |
0 / 300 |
0 / 300 |
0 / 300 |
0 / 300 |
Status |
|
|
|
|
|
Set Name |
Test Cases |
Text1 |
in1.txt |
Text2 |
in2.txt |
Text3 |
in3.txt |
Text4 |
in4.txt |
Text5 |
in5.txt |
Case Name |
Status |
Exec Time |
Memory |
in1.txt |
WA |
30 ms |
592 KB |
in2.txt |
WA |
31 ms |
592 KB |
in3.txt |
WA |
31 ms |
596 KB |
in4.txt |
WA |
30 ms |
628 KB |
in5.txt |
WA |
30 ms |
496 KB |