2016年2月27日
摘要:
PS:以前对long long型的数据就一直不怎么明白...弄了好久... long long a; scanf("%lld",&a); printf("%lld",a); 这样才行 代码:#include "stdio.h"void swap(long long *a,long long *b){ 阅读全文
posted @ 2016-02-27 17:19
庸人自扰扰
阅读(223)
推荐(0)
编辑
摘要:
PS: - -原本想的是排序开始时间和消耗时间。。后来想到可以排序结束时间..后来还wa了一次,因为排序的时候溢出了 思路: 1 3 //13 4 //20 7 3 8 2 9 5 10 //36 12 4 148 1810 15 //415 19 //515 20 代码:#include "std 阅读全文
posted @ 2016-02-27 15:56
庸人自扰扰
阅读(122)
推荐(0)
编辑
摘要:
Ps: - -感觉这道题完全就是数学题...就是求知道每个顶点的坐标,然后求这个多边形的面积... 代码:#include "stdio.h"#include "stdlib.h"#include "math.h"int main(){ int x[100],y[100]; int i,k,n; d 阅读全文
posted @ 2016-02-27 14:51
庸人自扰扰
阅读(207)
推荐(0)
编辑
2016年2月26日
摘要:
ps:发现语文理解能力不行也是醉醉的....是每个测试实例空行....空!行!不是空格! 还有就是gets才能吸收空格,而scanf不能. 代码: #include "stdio.h"#include "stdlib.h"#include "string.h"int main(){ int i,j, 阅读全文
posted @ 2016-02-26 22:28
庸人自扰扰
阅读(152)
推荐(0)
编辑
摘要:
Ps:尼玛这道题简直坑爹。。。就是直接比较ascii码....无脑题,想复杂了... 代码:#include "stdio.h"#include "string.h"#include "stdlib.h"int main(){ int i,j,s,flag; char a[110],max; whi 阅读全文
posted @ 2016-02-26 22:14
庸人自扰扰
阅读(143)
推荐(0)
编辑
摘要:
#include "stdio.h"int main(){ int n,m,k,num,i,sum=0; while(~scanf("%d%d",&n,&m)){ num=n;k=2; while(num!=0){ if(num>m){ for(i=0;i<m;i++){ sum+=k; k+=2; 阅读全文
posted @ 2016-02-26 17:22
庸人自扰扰
阅读(184)
推荐(0)
编辑
2016年2月25日
摘要:
#include "stdio.h"double stu[60],cla[10];int a[60][60];int main(){ int n,m,i,number,j; while(~scanf("%d%d",&n,&m)){ for(i=0;i<n;i++) stu[i]=0; for(i=0 阅读全文
posted @ 2016-02-25 21:37
庸人自扰扰
阅读(170)
推荐(0)
编辑
2015年12月30日
摘要:
A+B系列:#include "stdio.h"int main(){int a[3],b[3],c[3],i,n,j,flag;while(~scanf("%d",&n)){for(i=0;i=60){flag++;c[2]=a[2]+b[2]-60;}else{c[2]=a[2]+b[2];}i... 阅读全文
posted @ 2015-12-30 23:23
庸人自扰扰
阅读(198)
推荐(0)
编辑
摘要:
#include "stdio.h"#include "string.h"void compare(int n,char s[],char &k);void imput(char s[],char k,int n);int main(){char s[110],k;int i,n,flag;whil... 阅读全文
posted @ 2015-12-30 23:09
庸人自扰扰
阅读(192)
推荐(0)
编辑
摘要:
#include "stdio.h"int F(int n);int SUM(int n);int main(){int n,number,a;scanf("%d",&n);while(n!=0){number=SUM(n);printf("%d\n",number+1);scanf("%d",&n... 阅读全文
posted @ 2015-12-30 23:05
庸人自扰扰
阅读(135)
推荐(0)
编辑
|
|