2013年3月11日

USACO3.3.2--Shopping Offers

摘要: Shopping OffersIOI'95In a certain shop, each kind of product has an integer price. For example, the price of a flower is 2 zorkmids (z) and the price of a vase is 5z. In order to attract more customers, the shop introduces some special offers.A special offer consists of one or more product items 阅读全文

posted @ 2013-03-11 23:44 仗剑奔走天涯 阅读(308) 评论(0) 推荐(0) 编辑

SGU105 - Div 3

摘要: 105. Div 3time limit per test: 0.5 sec.memory limit per test: 4096 KBThere is sequence 1, 12, 123, 1234, ..., 12345678910, ... . Given first N elements of that sequence. You must determine amount of numbers in it that are divisible by 3.InputInput contains N (1<=N<=231- 1).OutputWrite answer t 阅读全文

posted @ 2013-03-11 17:30 仗剑奔走天涯 阅读(165) 评论(0) 推荐(0) 编辑

导航