QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#586696 | #9134. Building a Fence | Djangle162857# | Compile Error | / | / | C++14 | 681b | 2024-09-24 15:05:33 | 2024-09-24 15:05:34 |
Judging History
answer
#include <bits[表情]dc++.h>
#define int long long
using namespace std;
int a,b,c;
signed main() {
int t;cin>>t;
while(t--) {
scanf("%lld%lld%lld",&a,&b,&c);
if(a>b) swap(a,b);
int ans=(a+a+b+b)/c;
if((a+a+b+b)%c) ans++;
if(c<=a) {
ans=ans;
}
else if(c<b) {
if(6*c<=4*a+4*b||6*c<=12*a) {
ans=ans;
}
else ans=ans+1;
}
else if(c==b) {
if(c==2*a) {
ans=3;
}
else {
ans=4;
}
}
else if(c>b) {
if(c==a+b) {
ans=2;
}
else if(2*c==2*b+a) {
ans=3;
}
else if(2*c==a+2*b) {
ans=3;
}
else {
ans=4;
}
}
printf("%lld\n",ans);
}
return 0;
}
Details
answer.code:1:10: fatal error: bits[表情]dc++.h: No such file or directory 1 | #include <bits[表情]dc++.h> | ^~~~~~~~~~~~~~~~~~ compilation terminated.