摘要:
第一个Java程序。。。神似去年打hello world的时候,虽然不知道敲的是啥,但是成功迈出第一步了。 1 package main; 2 3 /** 4 * 5 * @author cuizhe 6 */ 7 public class Main { 8 9 /**10 * @param args the command line arguments11 */12 public static void main(String[] args) {13 System.out.println("Hello,Java!");14 ... 阅读全文
摘要:
题目链接和Vijos上的选课一模一样。。无奈效率700+,怎么这么慢啊。。。 1 #include <stdio.h> 2 #include <string.h> 3 #include <stdlib.h> 4 struct node 5 { 6 int left,right; 7 }tree[301]; 8 int p[301],dp[301][301]; 9 int max(int a,int b)10 {11 return a > b? a:b;12 }13 void insert(int son,int father)14 {15 int t; 阅读全文