View Code 1 #include<stdio.h> 2 #include<string.h> 3 #include<queue> 4 using namespace std; 5 struct node{ 6 char s[20]; 7 int canshu; 8 int priority; 9 int num;10 bool operator < (const node&b) const{11 if(priority==b.priority)12 return num>b.num;13 ... Read More
posted @ 2011-11-08 22:03 Because Of You Views(292) Comments(0) Diggs(0) Edit
小数的幂计算注意toPlainString的使用,表示非科学计数法View Code 1 import java.io.*; 2 import java.awt.*; 3 import java.math.*; 4 import java.text.*; 5 import java.util.*; 6 7 public class Main { 8 9 public static void main(String[] args) {10 Scanner scan = new Scanner(new BufferedInputStream(System.in));1... Read More
posted @ 2011-11-08 14:00 Because Of You Views(268) Comments(0) Diggs(0) Edit
最近每天一道javaView Code 1 import java.io.*; 2 import java.awt.*; 3 import java.math.*; 4 import java.text.*; 5 import java.util.*; 6 public class Main { 7 public static void main(String[] args) { 8 Scanner cin=new Scanner(System.in); 9 BigInteger a,c;10 while(cin.hasNext())1... Read More
posted @ 2011-11-08 13:30 Because Of You Views(206) Comments(0) Diggs(0) Edit