2012年8月4日

Ekka Dokka(水题)

摘要: Ekka DokkaTime Limit:2000MSMemory Limit:32768KB64bit IO Format:%lld & %lluSubmitStatusDescriptionEkka and his friend Dokka decided to buy a cake. They both love cakes and that's why they want to share the cake after buying it. As the name suggested that Ekka is very fond o... 阅读全文

posted @ 2012-08-04 21:57 铁树银花 阅读(267) 评论(0) 推荐(0) 编辑

Game of Life

摘要: Game of LifeTime Limit:3000MSMemory Limit:0KB64bit IO Format:%lld & %lluSubmitStatusPracticeUVALive 4034DescriptionLIFE is a evolutionary game played on a 2D game board. Initially, the game board is filled with white and black stones. For each iteration of the game, each stone is checked and per 阅读全文

posted @ 2012-08-04 20:32 铁树银花 阅读(1131) 评论(0) 推荐(0) 编辑

Miss Kitty and Her Little Ice Cream Shop(水题)

摘要: Miss Kitty and Her Little Ice Cream ShopTime Limit:3000MSMemory Limit:0KB64bit IO Format:%lld & %lluSubmitStatusPracticeUVALive 4033DescriptionMiss Kitty graduated from University N that has a long history of training their students to become teachers in an island country T. All of her classmate 阅读全文

posted @ 2012-08-04 17:06 铁树银花 阅读(245) 评论(0) 推荐(0) 编辑

数字转化为字符串,sprintf使用(弱菜笔记)

摘要: 注明:以下例程均在code::bolcks(编译器GNU GCC)下运行通过,如果读者不能正确运行,请尝试调整编译器为GNU或GCC。我们通过几个例子认识sprintf的用法,由此也初窥数字转化为字符串中数据的门径。最简单直接的方法:一个数字加上0的ASC2码就得到对应字符的ASC2码。//Example #1 #include <stdio.h> int main() { int a[3]={0, 1, 2}; char s[4]; for(int i = 0; i<3; i++) s[i] = a[i] + '0'; s[3] = '\0' 阅读全文

posted @ 2012-08-04 12:04 铁树银花 阅读(1580) 评论(0) 推荐(0) 编辑

导航