码迷,mamicode.com
首页 >  
搜索关键字:circle    ( 1397个结果
Codeforce Circle Line 环形数据操作
The circle line of the Berland subway has n stations. We know the distances between all pairs of neighboring stations: d1 is the distance between the 1-st and the 2-nd station; d2 is the d...
分类:其他好文   时间:2014-07-22 23:05:14    阅读次数:302
编程题:带参数的宏定义来实现,求圆的周长和面积。
编程题:带参数的宏定义来实现,求圆的周长和面积。#include<stdio.h>#definePI3.14159#defineL(r)2*PI*(r)#defineS(r)PI*(r)*(r)voidmain(){floatradius,circle,area;scanf("%f",&radius);circle=L(radius);area=S(radius);printf("radius:%f\tcircle:%f\tarea:%f\n..
分类:其他好文   时间:2014-05-20 21:25:39    阅读次数:947
LA 4727
Integers1, 2, 3,...,nare placed on a circle in the increasing order as in the following figure. We want to construct a sequence from these numbers on ...
分类:其他好文   时间:2014-05-14 02:54:10    阅读次数:354
[ACM] 1016 Prime Ring Problem (深度优先搜索)
Prime Ring Problem Problem Description A ring is compose of n circles as shown in diagram. Put natural number 1, 2, ..., n into each circle separately, and the sum of numbers in two adjacent...
分类:其他好文   时间:2014-05-13 11:54:17    阅读次数:444
hust 1009 Sum the K-th
题目描述N integers are arranged on a circle clockwise. Given two integers M and K. For each position, you should take M continuous integers on the left an...
分类:其他好文   时间:2014-05-09 10:30:49    阅读次数:350
杭电acm 1034题
Problem DescriptionA number of students sit in a circle facing their teacher in the center. Each student initially has an even number of pieces of can...
分类:其他好文   时间:2014-05-07 17:53:27    阅读次数:499
C++类的详细介绍
#include "iostream" using namespace std; //class 关键字 //Circle 是类的名字 class Circle { int m_age;//什么都不加 默认为private; private: //private 修饰的成员变量和成员函数,只能在类的内部使用; double xiaosi; //私有成员属性,...
分类:编程语言   时间:2014-04-30 22:45:39    阅读次数:313
1397条   上一页 1 ... 138 139 140
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!