SGU105 Div 3
2012-04-04 20:03
295 查看
time limit per test: 0.5 sec. |
#include <cstdio> int main() { int n; while (scanf("%d", &n) != EOF) { int ans = 0; if (n % 3 == 2) ans++; ans += 2 * (n / 3); printf("%d\n", ans); } }
相关文章推荐
- SGU105 Div 3
- SGU105 Div 3
- SGU105—— Div 3
- sgu 105 Div 3
- SGU 105 Div 3
- Div 3 - SGU 105(找规律)
- SGU 105 Div 3
- 数论 - SGU 105 DIV3
- SGU 105 Div 3
- SGU 105 Div 3
- SGU - 105 - Div 3 (简单数学题!)
- sgu 105 Div 3
- SGU 105 div3
- sgu105: Div 3
- SGU 105 Div 3(数论)
- SGU 105 Div 3 翻译 题解
- [SGU 105] Div 3 [数学]
- SGU105 - Div 3
- 数论 - SGU 105 DIV3
- 【sgu】105 解题报告