Algorithm/정렬1 [백준][3020번][정렬] 개똥벌레 개똥벌레https://www.acmicpc.net/problem/3020 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556#include #include using namespace std;int totaldown[500002] = {};int totalup[500002] = {};int total[500002] = {};int down[500002] = {};int up[500002] = {};int main(void){ int N, H; int upMax = 0; int downMax = 0; int min = INT_MAX; int count = 1; scanf(".. 2016. 4. 21. 이전 1 다음 728x90