POJ
hit15105
生当做人杰
展开
-
1000
C:#include int main(){ long num1,num2; while(scanf("%d %d",&num1,&num2)==2){ printf("%d/n",num1+num2); } return 0;}------------------------------------------原创 2011-06-04 08:29:00 · 248 阅读 · 0 评论 -
1005
#include #define PI 3.1415926int main(){ double x,y; int n,i,year; scanf("%d",&n); for(i=0;i<n;i++) { scanf("%lf %lf",&x,&y); year=PI*(x*x+y*y)/100;原创 2011-06-04 18:47:00 · 302 阅读 · 0 评论 -
1006
#include #define PI 3.1415926int main(){ long p,e,i,d,count=1; long all; while(scanf("%ld %ld %ld %ld",&p,&e,&i,&d)==4) { if(p==-1&&e==-1&&i==-1&&d==-1)原创 2011-06-04 20:12:00 · 350 阅读 · 0 评论 -
1046
#include #include #define NUM 16int main(){ int x[NUM],y[NUM],z[NUM]; int i,a,b,c,res; double len1,len2; for(i=0;i scanf("%d %d %d",&x[i],&y[i],&z[i]); whil原创 2011-06-04 23:24:00 · 386 阅读 · 0 评论 -
1012
#include #include #define MAX 1000int Joseph(int n,int m)//数组法{ int i,j,k=0; int peo[MAX]={0}; for(i=0;i<n;i++) { for(j=0;j<m;k=(k+1)%n) {原创 2011-06-05 22:14:00 · 396 阅读 · 0 评论 -
1003
#include #define NUM 278//因为278以后的数就超出5.20了int main(){ double len[NUM]={0},temp=0,x; int i; for(i=1;i { temp+=1.0/(i+1); len[i]=temp; } while(原创 2011-06-04 09:18:00 · 343 阅读 · 0 评论 -
1004
#include int main(){ double a,sum=0.0; int i; for(i=0;i scanf("%lf",&a); sum+=a; } printf("$%.2f/n",sum/12);//注意C89输出不支持lf return 1;}原创 2011-06-04 09:41:00 · 261 阅读 · 0 评论 -
1007
#include #include int main(){ char a[101][51],b[51]; int d[101]={0}; int n,m,i,j,k,num,temp; scanf("%d %d",&n,&m); for(i=0;i<m;i++) scanf("%s",a[i]);原创 2011-06-04 21:21:00 · 274 阅读 · 0 评论 -
1001
import java.util.Scanner;import java.math.BigDecimal;public class Main { public static void main(String[] args) { Scanner in=new Scanner(System.in); while(true){原创 2011-06-07 14:30:00 · 341 阅读 · 0 评论