上一页 1 ··· 7 8 9 10 11 12 13 下一页
  2015年2月19日
摘要: #include#includeint main(){ int x; scanf("%d",&x); int arr[3]={0,0,0}; //三个位置分别:百、十、个位 int i=0; while(x!=0) { arr[2-i]=x%10; //按百、十... 阅读全文
posted @ 2015-02-19 15:48 Evence 阅读(280) 评论(0) 推荐(0) 编辑
摘要: #include#includeint main(){ int a1,b1,c1,a2,b2,c2; //【思维】168以内的数字可以用两位13进制数表示,大大简化代码 scanf("%d.%d.%d",&a1,&b1,&c1); scanf("%d.%d.%d",&... 阅读全文
posted @ 2015-02-19 15:23 Evence 阅读(98) 评论(0) 推荐(0) 编辑
摘要: #include#includeint main(){ int a,b,c; //【思维】168以内的数字可以用两位13进制数表示,大大简化代码 scanf("%d%d%d",&a,&b,&c); char arr[13]={'0','1','2','3','4','... 阅读全文
posted @ 2015-02-19 15:06 Evence 阅读(104) 评论(0) 推荐(0) 编辑
摘要: #include#includeint main(){ int n,jin; scanf("%d%d",&n,&jin); if(0==n) //特判0的时候,就是回文数 { printf("Yes\n0"); return 0; } int arr[50]... 阅读全文
posted @ 2015-02-19 12:04 Evence 阅读(115) 评论(0) 推荐(0) 编辑
摘要: #include#includeint main(){ int a,b,D; scanf("%d%d%d",&a,&b,&D); int sum=a+b; if(sum==0) //【caution】特判0的时候 { printf("0"); return... 阅读全文
posted @ 2015-02-19 11:42 Evence 阅读(183) 评论(0) 推荐(0) 编辑
  2015年2月18日
摘要: #include#include#include#includeusing namespace std;int main(){ int n,other,hang; char p; scanf("%d %c",&n,&p); --n; if(n==0) printf("%c",p); ... 阅读全文
posted @ 2015-02-18 16:36 Evence 阅读(2355) 评论(0) 推荐(0) 编辑
摘要: #include#include#include#includeusing namespace std;int arr[100010];int main(){ memset(arr,0,sizeof(arr)); int n,len=0,max=0,maxI=0; scanf("%d",&n)... 阅读全文
posted @ 2015-02-18 15:47 Evence 阅读(477) 评论(0) 推荐(0) 编辑
摘要: #include#include#include#includeusing namespace std;struct STU{ char mname[10]; int y,m,d;}tmp,old,young,left,right; void init(){ old.y=right.y=201... 阅读全文
posted @ 2015-02-18 15:14 Evence 阅读(1585) 评论(0) 推荐(0) 编辑
摘要: #include#include#include#includeusing namespace std;typedef struct STU{ char mname[15]; char mID[15]; int mscore;}STU;bool cmp(STU a,STU b) ... 阅读全文
posted @ 2015-02-18 10:40 Evence 阅读(174) 评论(0) 推荐(0) 编辑
摘要: #include#include#include//【warning】double 输入%lf,输出%fstruct arr{ int exp; //指数 double cof; //系数}arr[1005];double ans[2010]; //下标是指数,内容是系... 阅读全文
posted @ 2015-02-18 10:20 Evence 阅读(146) 评论(0) 推荐(0) 编辑
上一页 1 ··· 7 8 9 10 11 12 13 下一页