• 博客园logo
  • 会员
  • 周边
  • 新闻
  • 博问
  • 闪存
  • 众包
  • 赞助商
  • Chat2DB
    • 搜索
      所有博客
    • 搜索
      当前博客
  • 写随笔 我的博客 短消息 简洁模式
    用户头像
    我的博客 我的园子 账号设置 会员中心 简洁模式 ... 退出登录
    注册 登录
庸人自扰扰
博客园 首页 新随笔 联系 订阅 订阅 管理
上一页 1 ··· 4 5 6 7 8 9 下一页

2016年2月27日

hdu 2028
摘要: 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 庸人自扰扰 阅读(228) 评论(0) 推荐(0)
 
hdu 2037
摘要: 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 庸人自扰扰 阅读(129) 评论(0) 推荐(0)
 
hdu 2036
摘要: 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 庸人自扰扰 阅读(212) 评论(0) 推荐(0)
 
 

2016年2月26日

hdu 2027
摘要: ps:发现语文理解能力不行也是醉醉的....是每个测试实例空行....空!行!不是空格! 还有就是gets才能吸收空格,而scanf不能. 代码: #include "stdio.h"#include "stdlib.h"#include "string.h"int main(){ int i,j, 阅读全文
posted @ 2016-02-26 22:28 庸人自扰扰 阅读(163) 评论(0) 推荐(0)
 
hd oj2025
摘要: 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 庸人自扰扰 阅读(150) 评论(0) 推荐(0)
 
hd oj2015
摘要: #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 庸人自扰扰 阅读(189) 评论(0) 推荐(0)
 
 

2016年2月25日

HD OJ2023
摘要: #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 庸人自扰扰 阅读(176) 评论(0) 推荐(0)
 
 

2015年12月30日

hdoj-2033
摘要: 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 庸人自扰扰 阅读(206) 评论(0) 推荐(0)
 
hdoj-2025a
摘要: #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 庸人自扰扰 阅读(199) 评论(0) 推荐(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 庸人自扰扰 阅读(142) 评论(0) 推荐(0)
 
 
上一页 1 ··· 4 5 6 7 8 9 下一页

公告


博客园  ©  2004-2025
浙公网安备 33010602011771号 浙ICP备2021040463号-3