摘要: 1 #include<iostream> 2 using namespace std; 3 char a[100][100]; 4 int x[10000]; 5 int y[10000]; 6 bool vis[100][100]; 7 int n=0,m=0,tot=0,stx,sty; 8 void get_input() 9 {10 cin >> n >> m;11 for (int i=0;i<n;i++)12 for (int j=0;j<m;j++){ 13 cin >> a[i][j];14 vis[i... 阅读全文
posted @ 2012-07-02 22:10 NoRush 阅读(901) 评论(0) 推荐(0) 编辑
摘要: 1 #include<iostream> 2 #include<string> 3 using namespace std; 4 string monkey_name; 5 int a[150]={0}; 6 bool prime(int pre) 7 { 8 if (pre<2) return false; 9 if (pre==2) return true;10 for (int i=2;i<pre;i++) if (pre%i==0) return false;11 return true; 12 }13 int main()14 {1... 阅读全文
posted @ 2012-07-02 19:49 NoRush 阅读(1788) 评论(0) 推荐(0) 编辑
摘要: 为了迎合即将到来的大学专业生活,我开始华丽丽地由Pascal转C++了…写的不好,切忌吐槽 1 #include<iostream> 2 using namespace std; 3 int t,n,ut,ft,dt; 4 const int size = 100000; 5 int a[size]; 6 void get_input() 7 { 8 char tmp; 9 cin >> t >> n >> ut >> ft >> dt; 10 for (int i=0;i<n;i++){11 cin >> 阅读全文
posted @ 2012-07-02 16:34 NoRush 阅读(443) 评论(0) 推荐(0) 编辑