#29169: why?


s111010137@student.nqu.edu.tw (Khazix)


#include <iostream>

using namespace std;

int main(void)

{

    unsigned long long int n;

 

    while (cin >> n)

    {

        cout << (n % 3) + (n / 3) << endl;

    }

 

    return 0;

}

#29172: Re:why?


cges30901 (cges30901)


         (n % 3) + (n / 3)


這個是怎麼來的?

如果你是看這個解題報告(https://zerojudge.tw/ShowThread?postid=24719&reply=0)的話,你少寫>0了