codeforces 559a//Gerald's Hexagon// Codeforces Round #313(Div. 1)

Posted gaudar

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了codeforces 559a//Gerald's Hexagon// Codeforces Round #313(Div. 1)相关的知识,希望对你有一定的参考价值。

题意:面积是sqrt(3)/4的多少倍?

做延长线

#pragma comment(linker,"/STACK:1024000000,1024000000") 
#include<iostream>
#include<cstdio>
#include<string>
#include<cstring>
#include<vector>
#include<cmath>
#include<queue>
#include<stack>
#include<map>
#include<set>
#include<algorithm>
#include <stack>
using namespace std;
const int SZ=1e7+10,INF=0x7FFFFFFF;
typedef long long lon;

int main()
{
    std::ios::sync_with_stdio(0);
    int a,b,c,d,e,f;
    cin>>a>>b>>c>>d>>e>>f;
    cout<<((a+f)*(a+b)+(c+d)*(d+e)-a*a-d*d)<<endl;
    return 0;
}

 

以上是关于codeforces 559a//Gerald's Hexagon// Codeforces Round #313(Div. 1)的主要内容,如果未能解决你的问题,请参考以下文章

CodeForces 559B Equivalent Strings

Codeforces - 559B - Equivalent Strings - 分治

Codeforces 559C Gerald and Giant Chess

Codeforces Round #559(Div.1)

codeforces559C

Codeforces Round #559 (Div. 2) (还差2题)