Posted on 2009-08-19 09:35
Hero 阅读(166)
评论(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 if( 2 == inn % 3 ) out ++ ;
16
17 printf( "%u\n", out ) ;
18 }
19
20 return 0 ;
21 }