![](https://img-blog.csdnimg.cn/20201014180756925.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
ACM
文章平均质量分 59
springwinter1
dggd
展开
-
acm程序调试时的输入
每次做ACM题的时候要输入题目中的数据来测试,但是往往得调试很多次,特别是当有大量的数据要输入时,而freopen函数就提供了一种简单的解决方法函数名:freopen声明:FILE *freopen( const char *path, const char *mode, FILE *stream );所在文件: stdio.h参数说明:path: 文件名。mode: 文件打开的模式。和f原创 2009-07-29 22:53:00 · 409 阅读 · 0 评论 -
Number lengths
N! (N factorial) can be quite irritating and difficult to compute for large values of N. So instead of calculating N!, I want to know how many digits are in it. (Remember that N! = N * (N -原创 2009-07-31 10:01:00 · 348 阅读 · 0 评论 -
Counterfeit Dollar
Sally Jones has a dozen Voyageur silver dollars. However, only eleven of the coins are true silver dollars; one coin is counterfeit even though its color and size make it indistinguishable from the re原创 2009-08-08 08:30:00 · 427 阅读 · 0 评论 -
Fire Net
题目:http://acm.fzu.edu.cn/problem.php?pid=1098Sample input: 4.X......XX......2XX.X3.X.X.X.X.3....XX.XX4................0Sample output: 51524原创 2009-08-10 18:52:00 · 459 阅读 · 0 评论 -
Hard to Believe, but True!
Input Specification The input contains several test cases. Each specifies on a single line a Turing equation. A Turing equation has the form "a+b=c", where a, b, c are numbers made up of the digits原创 2009-08-12 09:09:00 · 371 阅读 · 0 评论 -
叉乘法求三角形的面积及任意多边形面积
原理:将多边形分成多个三角形,而三角形的面积等于其中两条边向量的乘积,多个相加其中有几个约掉 三角形的面积(点(x0,y0)(x1,y1),(x2,y2)) fabs((x1-x0)*(y2-y0)-(y1-y0)*(x2-x0)) 多边形polygon的面积 typedef struct { double x,y;} Point; dou原创 2009-08-16 11:43:00 · 2842 阅读 · 0 评论