上一页 1 ··· 5 6 7 8 9 10 11 12 13 ··· 17 下一页
题目java做大数的题,真的是神器,来一道,秒一道~~~import java.io.*;import java.util.*;import java.math.*;public class Main { /** * @xqq */ public BigInteger a... Read More
posted @ 2014-05-01 16:27 laiba2004 Views(106) Comments(0) Diggs(0) Edit
题目/** * compareTo:根据该数值是小于、等于、或大于 val 返回 -1、0 或 1; public int compareTo(BigInteger val) 将此 BigInteger 与指定的 BigInteger 进行比较。 对于针对六个布尔比较运算符 (, >=, !=, ... Read More
posted @ 2014-05-01 11:05 laiba2004 Views(201) Comments(0) Diggs(0) Edit
题目//BigInteger 和 BigDecimal 是在java.math包中已有的类,前者表示整数,后者表示浮点数import java.io.*;import java.util.*;import java.math.*;public class Main { /** * @x... Read More
posted @ 2014-05-01 10:20 laiba2004 Views(155) Comments(0) Diggs(0) Edit
题目//在主类中 main 方法必须是 public static void 的,在 main 中调用非static类时会有警告信息,//可以先建立对象,然后通过对象调用方法:import java.io.*;import java.util.*;import java.math.*;public ... Read More
posted @ 2014-05-01 09:57 laiba2004 Views(150) Comments(0) Diggs(0) Edit
题目我要开始练习一些java的简单编程了^v^import java.io.*;import java.util.*;import java.math.*;public class Main { /** * @param args */ public static voi... Read More
posted @ 2014-04-30 22:38 laiba2004 Views(121) Comments(0) Diggs(0) Edit
题目注意模后余数为0时,要把除以26后的新数据减1,为什么这样,要靠大胆尝试。我在对小比赛中坑了一下午啊,直到比赛结束也没写出这道题。。。。要死了。。#include#includeint main(){ int n,i,j,row,col,len; char str[20],ans[2... Read More
posted @ 2014-04-20 20:25 laiba2004 Views(153) Comments(0) Diggs(0) Edit
题目真不想说什么,,,这神题真讨厌,,,多校的。。//又是一道神题。。。#include#include//最大公约数int gcd(int a, int b){ return b == 0 ? a : gcd(b, a % b);}int main(){ int n,m,c; ... Read More
posted @ 2014-04-20 20:13 laiba2004 Views(174) Comments(0) Diggs(0) Edit
题目链接同HDU 1128 ,POJ 1316(这个范围小一点)。原本怕超时,以为有技巧或者规律,死命的想,后来发现这就是一道水体,模拟着全部判断一下就好了,10秒呢,完全不怕超时。。。唔,废话有点多。。。#include#include#includeusing namespace std;int... Read More
posted @ 2014-04-17 22:28 laiba2004 Views(91) Comments(0) Diggs(0) Edit
该文被密码保护。 Read More
posted @ 2014-04-17 21:31 laiba2004 Views(0) Comments(0) Diggs(0) Edit
题目链接用p[a]保存的是输入的a在第p[a]个,然后根据差值查找。#include#includeint main(){ int mm,m,t,n,i,j,flag,a,p[10010]; scanf("%d",&t); while(t--) { flag=... Read More
posted @ 2014-04-16 23:03 laiba2004 Views(100) Comments(0) Diggs(0) Edit
上一页 1 ··· 5 6 7 8 9 10 11 12 13 ··· 17 下一页