2019年2月14日

UVA10493 Cats, with or without Hats【组合】

摘要: A cat wears a hat if and only if it has N cats in its hat. There is exactly one cat that is not inside any other cat’s hat. If there are M cats withou 阅读全文

posted @ 2019-02-14 20:57 新海岛Blog 阅读(99) 评论(0) 推荐(0)

UVA10491 Cows and Cars【概率】

摘要: In television contests, participants are often asked to choose one from a set of or doors for example, one or several of which lead to different prize 阅读全文

posted @ 2019-02-14 20:10 新海岛Blog 阅读(91) 评论(0) 推荐(0)

UVA11480 Jimmy's Balls【组合】

摘要: Jimmy has a very large bag full of balls. Each ball has a single color. There are three colors; red, blue and green. There is atleast one ball of each 阅读全文

posted @ 2019-02-14 18:15 新海岛Blog 阅读(118) 评论(0) 推荐(0)

UVA11547 Automatic Answer【水题】

摘要: Last month Alice nonchalantly entered her name in a draw for a Tapmaster 4000. Upon checking her mail today, she found a letter that read:    阅读全文

posted @ 2019-02-14 16:59 新海岛Blog 阅读(119) 评论(0) 推荐(0)

UVA11296 Counting Solutions to an Integral Equation【数学】

摘要: Given, n, count the number of solutions to the equation x + 2y + 2z = n, where x, y, z, n are non negative integers. Input There is at most 1500 input 阅读全文

posted @ 2019-02-14 16:23 新海岛Blog 阅读(134) 评论(0) 推荐(0)

UVA12114 UVALive4055 Bachelor Arithmetic【水题】

摘要: So what effect does a marriage ceremony has on an arbitrary bachelor (boy)? Well it depends on his thought process and context: he can be happy or sad 阅读全文

posted @ 2019-02-14 10:49 新海岛Blog 阅读(106) 评论(0) 推荐(0)

UVA11541 Decoding【水题】

摘要: Encoding is the process of transforming information from one format into another. There exist several different types of encoding scheme. In this prob 阅读全文

posted @ 2019-02-14 10:02 新海岛Blog 阅读(139) 评论(0) 推荐(0)

UVA11683 Laser Sculpture【水题】

摘要: Since its invention, in 1958, the laser has been used in a huge variety of applications, like electronic equipment, cirurgical instruments, weapons, a 阅读全文

posted @ 2019-02-14 09:40 新海岛Blog 阅读(102) 评论(0) 推荐(0)

UVA740 UVALive5355 Baudot Data Communication Code【编码】

摘要: Data are communicated between digital computers as sequences of bits. To provide meaning to a sequence of bits, the bits are grouped to form a data ch 阅读全文

posted @ 2019-02-14 07:53 新海岛Blog 阅读(161) 评论(0) 推荐(0)

UVA499 What's The Frequency, Kenneth?【文本】

摘要: include main() {     int i;     char suffix[]= { "st", "nd", "rd" };     char item[]= { "U 阅读全文

posted @ 2019-02-14 06:42 新海岛Blog 阅读(109) 评论(0) 推荐(0)

导航

// ... runAll: function() { this.resetPreCode(); hljs.initHighlightingOnLoad(); // 重新渲染,添加语法高亮 hljs.initLineNumbersOnLoad(); // 为代码加上行号 } // ...