当前位置:   article > 正文

c语言源代码下载TGAM,2018年江西理工大学C语言程序设计竞赛(初级组)一

? 。cyb.ggb.g%vv..,cv,y,,y ,gvhv.v. ‘: ’。′?,′/。。/,以有? 。!?。 ::

C语言中保留3位小数用%.3lf   用法:printf("%.3lf",result)

四边形分凸凹四边形。

aaarticlea/png;base64,iVBORw0KGgoAAAANSUhEUgAAAhwAAABSCAIAAACQUZoeAAAAAXNSR0IArs4c6QAAAAlwSFlzAAAOxAAADsQBlSsOGwAAJsRJREFUeF7tnXt0XFX1xwd5LddyoegKFKlSm7SgPDRaNdBCUyi2FlDE0IIg0DRFqAUUhWSqvBQ7qSCidCHQFJClQtJQ5WFtsdpUqUZaWsQXtAkPKTYkiMBP/QHij9/n3D33zrnvO48kk5lz/pg1c+c89vmec/Y++3HO3e2NN95ImWQQMAgYBAwCBoFSIPCmUlRi6jAIGAQMAgYBg4BCwAgVMw8MAgYBg4BBoGQIGKFSMihNRQYBg4BBwCBghIqZAwYBg4BBwCBQMgSMUCkZlKYig4BBwCBgEDBCxcyBikWAyMb/s1LF9nDMdoyh+cUvfmFCT8fsAEYRboRKCYZ1W3vtgu6hElRkqigdAvCsGTNmHHvssXyWv1ypqimELDn11FOXLFlihErp5nsZ1bRb3uM60LVgSWrW5HR6hdONlsyyvnRrj/27pbs/Xc+PLZna9bP729RXlfg5r0PveuOy3pVNNQFg0MTU/sVSScmTqjydCmmatd2U61dI2wu7c50K6pdVzAZB6rAadQDS6m3MbFo5d5w82JapXTs7715TanltrhKnuQgAg4pkCWhKdfanp/g77hQZ6mpuWDfHP3DqeXqjp6AbBCbAjbW9t861htzdWddfpRnynp6e119//fjjjz/77LNvu+223XbbrTT1xtVSRlNIrbhUdjFmyQ4Y+qHuBQ25xRvVPdeCleXMWpi51rOurSr0ie2t85577jn55JPr6uoef/zxN71J7WsTgSbVeFZfrl+J1g4NLa9zzV6635ZqF0ZUOBlqga+bJcswAPZQVLP0TNsQx/HsgUtpDXlqzfLbVKa2ycVnZTz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QKYVH+F6hU6pCbfhkEyhABDAbIEq7M4ZQutugypNCQlBCB6hUqACRvmeSmQsKNjEs24Ywx2QwCJUcAiYKpgBBzDhejo3B1Rey10yWnwVRYKgSqWqiwISJkizcJmhlcqvlk6jEI5IsAES7cAEsMMVdsyLtfOYNsPJT5wlg++as3+kvGgOBajtphzDWaSvlMSkNJVSHA9WWrV6/WI8i5j4dVOXPmzKrCoWI6W+1CBTWF64ZQtytmRE1HDAJjCAFkCQenuJHPQzOHIo2vfgyNo05qtQuVMTpshmyDQMUgIG9z8CQjUcbu+BqhMnbHzlBuEDAIGATKDoGqdtSX3WgYggwCBgGDwBhHwAiVMT6AhnyDgEHAIFBOCBihUk6jYWgxCBgEDAJjHAEjVMb4ABryDQIGAYNAOSFghEo5jYahxSBgEDAIjHEE/h/W976OfHIWKgAAAABJRU5ErkJggg==" alt="" />

提示都告诉你了

#include

using namespace std;

struct Point

{

float x, y;

};

float LinearIntegration(const Point &p1, const Point &p2)

{

return 0.5 * (p2.x - p1.x) * (p2.y + p1.y);

}

float ComputePolygonArea(const Point points[], int length)

{

if (points == NULL || length <= 0) return 0.0;

float area = 0.0;

for (int i = 0; i < length - 1; ++ i)

{

area += LinearIntegration(points[i], points[i + 1]);

}

area += LinearIntegration(points[length - 1], points[0]);

return area >= 0.0 ? area : -area;

}

int main()

{

int n;

Point a[4];

for(int i=0; i<4;i++) cin>>a[i].x>>a[i].y;

float ans = ComputePolygonArea(a,4);

printf("%.3f\n",ans);

return 0;

}

F: 进制转换

时间限制: 1 s      内存限制: 128 MB

题目描述

给定一个区间[l, r],从l至r之间的所有数依次转换成16进制然后连在一起,接着再转换成10进制,最后再对15取模。

输入

输入两个是l, r (1≤l≤r≤106)

输出

输出对15取模的结果。

样例输入

10 14

样例输出

0

提示

样例说明:

10、11、12、13、14的16进制分别是a、b、c、d、e。依次连在一起是abcde,转换成10进制是703710,对15取模为0。

一般的转化。(a*16^n+b*16^(n-1)..)%15,展开,a%16*16^n%15,16%15就可以不考虑了,于是变成a%15+b%15..。于是简化成a+b+c+d+e。注意取模

using System;

using System.Collections;

using System.Collections.Generic;

using System.IO;

using System.Linq;

using System.Reflection.Emit;

using System.Runtime.InteropServices;

public class Program

{

public static void Main()

{

var str = "";

List a = new List(Console.ReadLine().Split()).ConvertAll(i => int.Parse(i));

var sum = 0;

for (int i = a[0]; i <= a[1]; i++)

{

var pa = Convert.ToString(i, 16);

//var pa = Convert.ToInt32(x, 16).ToString();

var len = pa.Length;

for (int j = 0; j < len; j++)

{

if (pa[j] == 'a')

{

sum += (10);

sum %= 15;

}

else if (pa[j] == 'b')

{

sum += (11);

sum %= 15;

}

else if (pa[j] == 'c')

{

sum += (12);

sum %= 15;

}

else if (pa[j] == 'd')

{

sum += (13);

sum %= 15;

}

else if (pa[j] == 'e')

{

sum += (14);

sum %= 15;

}

else if (pa[j] == 'f')

{

sum += (15);

sum %= 15;

}

else

{

sum += int.Parse(pa[j].ToString());

sum %= 15;

}

}

}

Console.WriteLine(sum%15);

Console.ReadKey();

}

public static int ri() { return int.Parse(Console.ReadLine()); }

static int[] rla(char sep = ' ') { return Array.ConvertAll(Console.ReadLine().Split(sep), e =>int.Parse(e)); }

}

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/小丑西瓜9/article/detail/89097
推荐阅读
相关标签
  

闽ICP备14008679号