You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
출력시 cout << endl 을 사용한 경우(fflush) ->
cout << endl을 사용하지 말고 cout<<"\n" 을 사용하기
or printf사용하기
입력시 cin을 사용한 경우 ->
or scanf 사용하기 (이것만 바꿔서 통과된 경우 있음..)
또는 ->
ios_base::sync_with_stdio(false);
cin.tie(NULL);
cout.tie(NULL);
->
쓸데없이 함수의 반환 값이 있는 경우 void로 리턴하기
C(C++) 매우 큰 배열 등 할당
main() 또는 함수 내에 매우 큰 배열을 할당할 경우
지역변수(stack영역)로 할당되어 StackOverflow
->
전역or정적변수(data영역)로 할당
Python3 재귀함수 깊이 제한 설정
importsyssys.setrecursionlimit(10**6) # 깊이 제한 10^6 설정