QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#586696#9134. Building a FenceDjangle162857#Compile Error//C++14681b2024-09-24 15:05:332024-09-24 15:05:34

Judging History

你现在查看的是最新测评结果

  • [2024-09-24 15:05:34]
  • 评测
  • [2024-09-24 15:05:33]
  • 提交

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;
}

详细

answer.code:1:10: fatal error: bits[表情]dc++.h: No such file or directory
    1 | #include <bits[表情]dc++.h>
      |          ^~~~~~~~~~~~~~~~~~
compilation terminated.