摘要: #include<iostream>using namespace std;int main (){ int n,m,max; cin>>n; m=n; max=n*n; int count=1; int s[105][105]; int x=1,y=n; while(count<=max) { w 阅读全文
posted @ 2018-07-22 19:47 换牙 阅读(81) 评论(0) 推荐(0) 编辑
摘要: #include<iostream>#include<string.h>using namespace std;int main (){ char s[105]; while(gets(s)) { int m=strlen(s); for(int i=0;i<m;i++) { if(i==0) pr 阅读全文
posted @ 2018-07-16 20:49 换牙 阅读(94) 评论(0) 推荐(0) 编辑
摘要: #include<iostream>#include<string.h>using namespace std;int main (){ int n; cin>>n; while(n--) { int count=0; char s[1000000]; cin>>s; int m=strlen(s) 阅读全文
posted @ 2018-07-16 20:27 换牙 阅读(59) 评论(0) 推荐(0) 编辑
摘要: #include<iostream>#include<math.h>using namespace std;bool prime(int x){ if(x<=1) return false; if(x==2||x==3) return true; for(int i=2;i<=sqrt(x);i++ 阅读全文
posted @ 2018-07-16 13:57 换牙 阅读(125) 评论(0) 推荐(0) 编辑
摘要: #include<iostream>#include<string.h>using namespace std;int main (){ char s[10000005]; cin.get (s, 10000005); int n=strlen(s); for(int i=0;i<n;i++) { 阅读全文
posted @ 2018-07-16 13:21 换牙 阅读(133) 评论(0) 推荐(0) 编辑
摘要: #include<iostream>#include<string.h>using namespace std;int main (){ char s[5000005]; cin>>s; int n=strlen(s); for(int i=n-1;i>=0;i--) cout<<s[i]; cou 阅读全文
posted @ 2018-07-16 13:01 换牙 阅读(101) 评论(0) 推荐(0) 编辑
摘要: 01.#include<iostream> 02.using namespace std; 03.int mmax(int a[]) 04.{ 05. int max=0; 06. for(int i=0;i<5;i++) 07. if(a[i]>max) 08. max=a[i]; 09. ret 阅读全文
posted @ 2018-07-15 11:43 换牙 阅读(154) 评论(0) 推荐(0) 编辑
摘要: 01.#include<iostream> 02.#include<math.h> 03.using namespace std; 04.bool prime(int x) 05.{ 06. if(x==1||x==0) 07. return false; 08. else if(x==2||x== 阅读全文
posted @ 2018-07-15 11:28 换牙 阅读(201) 评论(0) 推荐(0) 编辑
摘要: #include<iostream>#include<math.h>using namespace std;bool prime(int x){ if(x==1) return false; else if(x==2||x==3) return true; else { for(int i=2;i< 阅读全文
posted @ 2018-07-15 11:01 换牙 阅读(267) 评论(0) 推荐(0) 编辑
摘要: #include<iostream>using namespace std;int main (){ int m,f[20]; cin>>m; f[1]=1; f[2]=1; for(int i=3;i<20;i++) f[i]=f[i-1]+f[i-2]; while(m--) { int n; 阅读全文
posted @ 2018-07-15 10:43 换牙 阅读(87) 评论(0) 推荐(0) 编辑