10807 C++

    [백준 10807번][C++] 개수 세기

    #include using namespace std; int main() { //-100 ~ 100 의 수의 개수를 담기위한 201이상 크기의 배열 int list[204]{ 0, }; int test; cin >> test; int input; //수 입력받고 그에맞는 INDEX의 수 증가 for (int i = 0;i > input; //음수일 때는 201을 더해주어 INDEX 100이상으로 취급 if (input > input; if (input < 0) { input += 201; } cout