其实不难,但是千万不要把/12和*4合成/3,会错的!
#include <iostream> using namespace std; int main() { int a; cin>>a; cout<<a/12*4+2; return 0; }