2016年1月18日

基础练习 十六进制转换八进制

摘要: 1 #include 2 #include 3 #include 4 #include 5 using namespace std; 6 7 char str[100010]; 8 int a[5000000]; 9 10 int main()11 {12 int i,k,j,n... 阅读全文

posted @ 2016-01-18 23:11 青春的梦想付诸行动 阅读(354) 评论(0) 推荐(0)

算法训练 关联矩阵

摘要: 1 #include 2 3 using namespace std; 4 5 int main() 6 { 7 int s[110][1010]; 8 int n,m,a,b,i,j; 9 while(~scanf("%d%d",&n,&m))10 {11 ... 阅读全文

posted @ 2016-01-18 22:55 青春的梦想付诸行动 阅读(162) 评论(0) 推荐(0)

寻找数组中最大值

摘要: 1 #include 2 3 using namespace std; 4 5 int main() 6 { 7 int s[101]; 8 int max,i,n,c; 9 while(~scanf("%d",&n))10 {11 for(i... 阅读全文

posted @ 2016-01-18 22:21 青春的梦想付诸行动 阅读(190) 评论(0) 推荐(0)

Torry的困惑(基本型)

摘要: 1 #include 2 3 #include 4 using namespace std; 5 6 bool isprime(int x) 7 { 8 int i; 9 for(i=2;i<=sqrt((double)x);i++)10 {11 i... 阅读全文

posted @ 2016-01-18 22:16 青春的梦想付诸行动 阅读(128) 评论(0) 推荐(0)

导航