您的位置:首页 > 其它

Sgu105

2012-04-02 22:52 218 查看
目测SGU中最水的一题,找到规律就行了

/*
*NAME:DIV 3
*LANG:C++
*Source:sgu105
*/
#include <iostream>
using namespace std;

int n,ans;
int main(){
cin >> n;
cout << ((n/3*2)+(n%3==2)) << endl;
}
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: