摘要: #include #include #include #include #include bool isprime(int n){ if(n<=1){ return false; } for(int i=2;i<=sqrt(n);i++){ if(n%i==0){ return false; } } retu... 阅读全文
posted @ 2018-08-01 21:48 sunnybowen 阅读(127) 评论(0) 推荐(0) 编辑
摘要: #include #include #include #include int main(int argc,char const *argv[]){ char s[]={'W','T','L'}; double ans=1.0,tmp,a; int i,j,idx; for(i=0;itmp){ tmp=a; ... 阅读全文
posted @ 2018-08-01 17:23 sunnybowen 阅读(201) 评论(0) 推荐(0) 编辑
摘要: #include #include #include #include int main(int argc,char const *argv[]){ int a[][3]={{0},{1},{2}}; for(int i=0;i<3;i++){ for(int j=0;j<3;j++){ printf ("%d ",a[i][j]); } ... 阅读全文
posted @ 2018-08-01 16:24 sunnybowen 阅读(274) 评论(0) 推荐(0) 编辑