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

2016年2月28日

hdu 2043
摘要: Ps:自己写了以后又去看了下苏哥的....改进版的....学到东西,直接套用了. 代码: #include "stdio.h"#include "string.h"int main(){ int i,s,n,dx,xx,sz,fh; char a[110]; scanf("%d",&n); whil 阅读全文
posted @ 2016-02-28 23:46 庸人自扰扰 阅读(121) 评论(0) 推荐(0)
 
hdu 2042
摘要: Ps:。。。好简单的一道题...直接AC,就是利用递归 代码: #include "stdio.h"int find(int num,int n);int main(){ int n,i,m; while(~scanf("%d",&n)){ for(i=0;i<n;i++){ scanf("%d", 阅读全文
posted @ 2016-02-28 22:57 庸人自扰扰 阅读(184) 评论(0) 推荐(0)
 
hdu 2030
摘要: PS:原本这道题就空了好久...今天才去查了下汉字机内码... 然后才知道了. 1—— 一个汉字在字符串中是以两个负的字符形式存储,所以本题只要把字符串中负字符的个数找出来,再 除以2 就OK了。 2——汉字机内码在计算机的表达方式的描述是,使用二个字节,每个字节最高位一位为1。 计算机中, 补码第 阅读全文
posted @ 2016-02-28 22:49 庸人自扰扰 阅读(186) 评论(0) 推荐(0)
 
hdu 2035
摘要: Ps:查了下快速幂,顺便在这用下.... 积的求余等于两个数的求余的积再求余... 代码: #include "stdio.h"int mod(int a,int b);int main(){ int a,b,n; while(~scanf("%d%d",&a,&b) &&(a||b) ){ pri 阅读全文
posted @ 2016-02-28 21:43 庸人自扰扰 阅读(163) 评论(0) 推荐(0)
 
 

公告


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