본문 바로가기

전체 글137

백준 1463번 C++ https://assb.tistory.com/entry/%EB%B0%B1%EC%A4%80-1463%EB%B2%88-1%EB%A1%9C-%EB%A7%8C%EB%93%A4%EA%B8%B0 백준 1463번: 1로 만들기 https://www.acmicpc.net/problem/1463 1463번: 1로 만들기 첫째 줄에 1보다 크거나 같고, 106보다 작거나 같은 정수 N이 주어진다. www.acmicpc.net 문제 정수 X에 사용할 수 있는 연산은 다음과 같이 세 가지 이.. assb.tistory.com #include using namespace std; int numbers[1000001]; //몇번 하는지 횟수 저장 //X가 3으로 나누어 떨어지면 3으로 나눈다. //X가 2로 나누어 떨어지면 2로.. 2022. 8. 9.
백준 2108번 C++ https://www.acmicpc.net/problem/2108 2108번: 통계학 첫째 줄에 수의 개수 N(1 ≤ N ≤ 500,000)이 주어진다. 단, N은 홀수이다. 그 다음 N개의 줄에는 정수들이 주어진다. 입력되는 정수의 절댓값은 4,000을 넘지 않는다. www.acmicpc.net #include #include #include using namespace std; int nums[500000]; int main() { int n; double sum = 0; cin >> n; for (int i = 0; i > nums[i]; //더하기 sum += nums[i]; } cout 2022. 8. 7.
[Unity Error] UnityEditor.PropertyEditor.DrawEditors (UnityEditor.Editor[] editors) 새 프로젝트를 하던 중에 이상한 에러가 나타났다. UnityEditor.PropertyEditor.DrawEditors (UnityEditor.Editor[] editors) 라는 에러이다. 이 에러는 Game을 Play할 때만 나타난다. 정확한 원인을 알아내지는 못했지만 https://answers.unity.com/questions/1828185/whenever-i-press-the-unity-editors-play-button-i-g.html Whenever I press the Unity Editor's play button, I get this error: - Unity Answers answers.unity.com 여기에 따르면 Inspector창이 2개 이상 켜져있으면 이런 에러가 나타난다고.. 2022. 8. 4.
모바일 게임 성능 최적화 1 - Profiling 군대 훈련을 훈련을 끝마치고나서 모바일 게임을 한번 제작을 해보고 싶어서 이렇게 이론적으로나마 모바일 최적화에 대해서 공부를 하고 있다. https://youtu.be/1mJtoceqvro 해당 동영상으로 공부를 진행했다. Profiling Profiling은 최적화의 기본 중에 기본이다! Unity에서는 기본 Profiler가 존재한다. Development Build를 할 때 Autoconnect to Profiler를 활성화하면 디바이스에 게임을 띄우고 해당 게임을 프로파일링 할 수 있다. 또는 editor에서 profiling을 할 수도 있다. 이러한 profiling기능의 존재는 알고 있지만 저를 포함해 많이 사용하지 않는다. 최적화하기 전에 반드시 Profiling해야한다. 최적화를 Profi.. 2022. 4. 9.