摘要: 1 import java.util.Scanner; 2 3 public class ArrayTest { 4 5 public static void main(String[] args) { 6 int n, m; 7 Scanner cin = new Scanner(System.in); 8 n = cin.nextInt(); 9 m = cin.nextInt();10 toBin(n);11 toHex(m);12 }13 14 public s... 阅读全文
posted @ 2013-12-05 19:16 天天AC 阅读(327) 评论(0) 推荐(0)
摘要: 1 # include 2 # include 3 # include 4 using namespace std; 5 int main(int argc,const char *argv[]) 6 { 7 /*-------------------------------------------*/ 8 //multiset中插入数据 9 //multisetms;10 //ms.insert("abc");11 // ms.insert("123");12 //ms.insert("111");13 //ms.insert(&q 阅读全文
posted @ 2013-12-05 18:51 天天AC 阅读(164) 评论(0) 推荐(0)
摘要: 1 # include 2 # include 3 # include 4 using namespace std; 5 struct myComp 6 { 7 bool operator()(const int &a, const int &b) 8 { 9 if(a!=b) 10 { 11 return a>b; 12 } 13 else 14 { 15 return a>b; 16 } 17 } 18 ... 阅读全文
posted @ 2013-12-05 18:49 天天AC 阅读(208) 评论(0) 推荐(0)
摘要: 1 # include 2 # include 3 # include 4 using namespace std; 5 struct myComp 6 { 7 bool operator()(const int &a,const int &b) 8 { 9 if(a!=b) 10 return a>b; 11 else 12 return as; 29 //s.insert(8); 30 //s.insert(1); 31 //s.insert(12);... 阅读全文
posted @ 2013-12-05 18:48 天天AC 阅读(166) 评论(0) 推荐(0)