自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(18)
  • 收藏
  • 关注

原创 杭电 HDU 1402 A * B Problem Plus JavaJ大数

题目点击打开链接import java.math.BigDecimal;import java.util.Scanner;public class p1402 { public static void main(String[] args) { Scanner sc=new Scanner(System.in); BigDecimal A,B; while(sc.h

2015-08-19 16:05:11 721

原创 杭电 HDU 1002 A + B Problem II Java 大数的初级用法

点击打开链接import java.util.*;import java.math.BigDecimal;public class p1002{ public static void main(String args[]){ Scanner sc=new Scanner(System.in); int N=sc.nextInt(); int k=1; while(N-->

2015-08-18 17:09:09 506

原创 杭电 HDU 1219 java AC Me

题目:点击打开链接import java.util.Scanner;public class p1219 { public static void main(String[] args) { Scanner sc=new Scanner(System.in); while(sc.hasNext()){ String str = sc.nextLine();

2015-08-18 16:52:14 458

原创 杭电 HDU 1248 Java寒冰王座

点击打开链接public class p1248 { public static void main(String[] args) { Scanner sc=new Scanner(System.in); int n=sc.nextInt(); while(n-->0){ int m=sc.nextInt(); int a=m/350; int b=(m-a*350

2015-08-18 16:36:04 642 1

原创 杭电ACM 1008Elevator

点击打开链接import java.util.Scanner;public class p1008 { public static void main(String[] args) { Scanner sc=new Scanner(System.in); while(sc.hasNext()){ int n=sc.nextInt(); if(n==0){

2015-08-08 20:32:44 537 1

原创 杭电acm 2139 Calculate the formula

点击打开链接import java.util.Scanner;public class p2139 { public static void main(String[] args) { Scanner sc=new Scanner(System.in); //一开始测试数据知道当n大于2344的时候刚好溢出 2^31-1 //打表 int a[]=new int [

2015-08-07 19:22:23 591

原创 杭电acm 2162 Add ‘em

import java.util.Scanner;public class p2162 { public static void main(String[] args) { Scanner sc=new Scanner (System.in); int l=0; while(sc.hasNext()){ int n=sc.nextInt(); if(n<=0){

2015-08-07 16:06:08 465

原创 杭电acm 2309 ICPC Score Totalizer Software

import java.util.Scanner;public class p2309 { public static void main(String[] args) { Scanner sc=new Scanner(System.in); while(sc.hasNext()){ int n=sc.nextInt(); if(n==0){ break; }

2015-08-06 20:28:49 548

原创 杭电 acm 2212 DFS

点击打开链接public class p2212 { public static void main(String[] args) { long flag,sum; for(long i=1;i<=2147483647;i++){//要想ac就把2147483647改成41000,就可以,不然都是超时 flag=i; sum=0; while(flag!=0){

2015-08-06 17:30:44 363

原创 杭电acm 2143 box

点击打开链接import java.util.Scanner;//被注释掉的方法虽说可以测出一般的数据,但是不能ac反而暴力的if条件可以public class p2143 { public static void main(String[] args) { Scanner sc=new Scanner(System.in); while(sc.hasNext()){

2015-08-06 17:15:21 415

原创 杭电acm 2520 我是菜鸟,我怕谁

点击打开链接由题目就可以知道这是一个等差数列求和的问题,推算出公式即可import java.util.Scanner;public class p2520 { public static void main(String[] args) { Scanner sc=new Scanner(System.in); int t=sc.nextInt(); while

2015-08-05 16:06:37 482

原创 杭电acm 2504又见GCD

点击打开链接import java.util.Scanner;public class p2504{ public static void main(String[] args) { Scanner sc=new Scanner(System.in); int t=sc.nextInt(); while(t-->0){ int a=sc.nextInt();

2015-08-05 15:59:34 824

原创 杭电2521 反素数

点击打开链接反杭电2521    反素数素数import java.util.Scanner;public class P2521 { public static void main(String[] args) { Scanner sc=new Scanner(System.in); int t=sc.nextInt(); while(t-->0){ int n=

2015-08-04 17:12:00 467

原创 杭电2552 三足鼎立

点击打开链接import java.util.*;public class Main { public static void main(String[] args) { Scanner sc=new Scanner(System.in); int t=sc.nextInt(); while(t-->0){ double s=sc.nextDouble(); doub

2015-08-04 16:19:05 368

原创 杭电2097 sky数水过

点击打开链接import java.util.*;class Main{ public static void main(String args[]){ Scanner sc=new Scanner(System.in); while(sc.hasNext()){ int n=sc.nextInt(); if(n==0){ break; } i

2015-08-03 23:39:56 496

原创 杭电1097 java水过

杭电1097点击打开链接import java.util.*;class Main{public static void main(String args[]){Scanner sc=new Scanner(System.in);while(sc.hasNext()){int a=sc.nextInt();int b=sc.nextInt();int s=1;

2015-08-03 22:28:00 483

原创 杭电P1001 Sum Problem

杭电P1001import java.util.*;class Main{ public static void main(String srgs[]){ Scanner sc =new Scanner (System.in); while(sc.hasNext()){ int n=sc.nextInt(); int sum=0; for(int i=1;i<=n;i

2015-04-10 10:14:49 381

原创 杭电P1000A+B

点击打开链接import java.util.*;class Main{public static void main(String args[]){Scanner sc=new Scanner(System.in);while(sc.hasNext()){int a=sc.nextInt();int b=sc.nextInt();System.out.

2015-04-09 13:45:02 402

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除