我希望你是我独家记忆

一段永远封存的记忆,随风而去
posts - 263, comments - 31, trackbacks - 0, articles - 3
   :: 首页 :: 新随笔 ::  :: 聚合  :: 管理

SGU_105

Posted on 2009-08-19 09:35 Hero 阅读(154) 评论(0)  编辑 收藏 引用 所属分类: 代码如诗--ACM
 1 //SGU 105  .CPP_VS Accepted 23 ms 0 kb 
 2 
 3 #include <stdio.h>
 4 #include <stdlib.h>
 5 #include <string.h>
 6 
 7 unsigned int inn ;
 8 
 9 int main()
10 {
11     while( scanf( "%u"&inn ) != EOF )
12     {
13         unsigned int out = inn / 3 * 2 ;
14 
15         if2 == inn % 3 ) out ++ ;
16 
17         printf( "%u\n"out ) ;
18     }
19 
20     return 0 ;
21 }

只有注册用户登录后才能发表评论。
网站导航: 博客园   IT新闻   BlogJava   知识库   博问   管理