02 2012 档案
摘要:1 /* 2 网络图用临接矩阵表示 3 算法复杂 4 度边数m顶点数n 5 O(n*m*m) 6 寻找增广路径用bfs 7 */ 8 #include<iostream> 9 #include<stdio.h>10 #include<queue>11 #include<cstring>12 using namespace std;13 #define MaxSize 100014 #define MaxNum 0xfffffff15 int g[MaxSize][MaxSize];16 17 int Augment(int g[][MaxSize
阅读全文
摘要:View Code 1 #include<iostream> 2 #include<stdio.h> 3 #include<queue> 4 #include<cstring> 5 using namespace std; 6 #define MaxSize 1000 7 #define MaxNum 0xfffffff 8 int g[MaxSize][MaxSize]; 9 10 int Augment(int g[][MaxSize],int n,int s,int t)11 {12 deque<int> q;13 int pr
阅读全文
摘要:1 import java.text.*; 2 import java.util.*; 3 public class ACM2 { 4 public static void main(String[] args) { 5 DecimalFormat f=new DecimalFormat("0.00"); 6 DecimalFormat g=new DecimalFormat("0.0#"); 7 Scanner cin=new Scanner (System.in); 8 double x=cin.nextDouble...
阅读全文
摘要:1 public class TestStatic { 2 public static void main(String[] args) { 3 StaticT.tes(); 4 StaticT s=new StaticT(); 5 s.tes(); 6 } 7 8 } 9 class StaticT {10 static void tes() {11 System.out.println("fssf");12 }13 }我一开始把TestStatic类中的main方法中没有写new Stati...
阅读全文
摘要:1 // Input n Ouput n! using BigInteger 2 3 import java.text.*; 4 import java.util.*; 5 import java.math.*; 6 public class ACM1 { 7 public static void main(String[] args) { 8 Scanner cin=new Scanner (System.in); 9 int n=cin.nextInt();10 BigInteger s=BigInteger.valueOf(...
阅读全文
摘要:Download ManagerTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 248 Accepted Submission(s): 132Problem DescriptionJiajia downloads a lot, a lot more than you can even imagine. Some say that he starts downloading up to 20,000 files together. If 20,
阅读全文
浙公网安备 33010602011771号