目测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;
}
目测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;
}