• 博客园logo
  • 会员
  • 众包
  • 新闻
  • 博问
  • 闪存
  • 赞助商
  • HarmonyOS
  • Chat2DB
    • 搜索
      所有博客
    • 搜索
      当前博客
  • 写随笔 我的博客 短消息 简洁模式
    用户头像
    我的博客 我的园子 账号设置 会员中心 简洁模式 ... 退出登录
    注册 登录
youdiankun
博客园    首页    新随笔    联系   管理    订阅  订阅
上一页 1 2 3 4 5 6 下一页
2014年4月25日
UVA409 - Excuses, Excuses!
摘要: Excuses, Excuses!Judge Ito is having a problem with people subpoenaed for jury duty giving rather lame excuses in order to avoid serving. In order to ... 阅读全文
posted @ 2014-04-25 17:04 youdiankun 阅读(259) 评论(0) 推荐(0)
UVA10361 - Automatic Poetry
摘要: Automatic Poetry“Oh God”, Lara Croft exclaims, “it’sone of these dumb riddles again!”In Tomb Raider XIV, Lara is, as ever, gunning her way through anc... 阅读全文
posted @ 2014-04-25 16:26 youdiankun 阅读(213) 评论(0) 推荐(0)
△UVA10494 - If We Were a Child Again(大数和整型数的除法、取余)
摘要: If We Were a Child Again“Oooooooooooooooh!If I could do the easy mathematics like my school days!!I can guarantee, that I’d not make any mistake this ... 阅读全文
posted @ 2014-04-25 10:46 youdiankun 阅读(194) 评论(0) 推荐(0)
2014年4月24日
△UVA465 - Overflow(判断大数相加相乘是否会溢出)
摘要: OverflowWrite a program that reads an expression consisting of two non-negative integer and an operator. Determine if either integer or the result of ... 阅读全文
posted @ 2014-04-24 22:18 youdiankun 阅读(627) 评论(0) 推荐(0)
△UVA10106 - Product(大数乘法)
摘要: ProductThe ProblemThe problem is to multiply two integers X, Y. (0 2 #include 3 4 #define maxn 2005 5 6 int main() 7 { 8 char a[maxn],b[maxn]; 9... 阅读全文
posted @ 2014-04-24 21:03 youdiankun 阅读(207) 评论(0) 推荐(0)
△UVA424 - Integer Inquiry(大数相加)
摘要: Integer InquiryOne of the first users of BIT's new supercomputer was Chip Diller. He extended his exploration of powers of 3 to go from 0 to 333 and h... 阅读全文
posted @ 2014-04-24 19:47 youdiankun 阅读(189) 评论(0) 推荐(0)
2014年4月23日
阶乘的精确值
摘要: 阶乘的精确值输入不超过1000的正整数n,输出n!的精度结果。样例输入:30样例输出:265252859812191058636308480000000 1 #include 2 #include 3 4 #define maxn 3000 5 6 int f[maxn]; 7 8 int m... 阅读全文
posted @ 2014-04-23 21:19 youdiankun 阅读(193) 评论(0) 推荐(0)
小学生算术
摘要: 小学生算术描述很多小学生在学习加法时,发现“进位”特别容易出错。你的任务是计算两个三位数在相加时需要多少次进位。你编制的程序应当可以连续处理多组数据,直到读到两个0(这是输入结束标记)。输入输入两个正整数m,n.(m,n,都是三位数)输出输出m,n,相加时需要进位多少次。样例输入123 456555... 阅读全文
posted @ 2014-04-23 21:11 youdiankun 阅读(210) 评论(0) 推荐(0)
UVA156 - Ananagrams(同白皮书的例子:字母重排)
摘要: AnanagramsMost crossword puzzle fans are used toanagrams--groups of words with the same letters in different orders--for example OPTS, SPOT, STOP, POT... 阅读全文
posted @ 2014-04-23 20:32 youdiankun 阅读(207) 评论(0) 推荐(0)
△UVA120 - Stacks of Flapjacks
摘要: Stacks of FlapjacksBackgroundStacks and Queues are often considered the bread and butter of data structures and find use in architecture, parsing, ope... 阅读全文
posted @ 2014-04-23 17:20 youdiankun 阅读(365) 评论(0) 推荐(0)
上一页 1 2 3 4 5 6 下一页
博客园  ©  2004-2025
浙公网安备 33010602011771号 浙ICP备2021040463号-3