코드포스 썸네일형 리스트형 [코드포스 Practice9] 후기 2020년의 첫 코포~ 닉네임 바꾼 건 19년도까지만 적용되는 것 같았는데 아직까지 바뀌지 않고 있다. 이제 내 색깔이 조금 부담스러워짐 아무튼.. 오늘 많이 안 떨렸다. 보통 심장이 침대에서 바운스 하는 느낌으로 문제 풀었는데 오늘은 침대에 꽁꽁 싸매뒀음. 긴장 안 하려고 무던히 애 썼다. A - 8분 B - 10분 C - x분 (40분정도 고민하다 D번으로 넘어감) D - x분 (20분정도 고민하다 C번으로 넘어감) E - x분 음.. A, B번까지는 빨리 풀어서 4솔브 되겠네! 생각했는데 C 틀리고 D틀리고 E틀렸다.. (ㅎㅎ) C는 8번 코포와 비슷한 수학문제인 것 같아서 순조롭게 풀었는데 자꾸 어디선가 틀렸고 결국 원인을 못 찾았다. D는.. 음.. 문제 이해는 했는데 어떻게 건드려야 할지 모르.. 더보기 [코드포스 Practice8] E. The Meeting Place Cannot Be Changed The main road in Bytecity is a straight line from south to north. Conveniently, there are coordinates measured in meters from the southernmost building in north direction. Bytecity에 있는 메인로드는 남쪽에서 북쪽으로 일직선이다. 편리하게, 가장 남쪽의 건물에서 북쪽 방향으로 미터로 측정된 좌표가 있다. At some points on the road there are n friends, and i-th of them is standing at the point xi meters and can move with any speed no greater than vi m.. 더보기 [코드포스 Practice8] D. Team Now it's time of Olympiads. Vanya and Egor decided to make his own team to take part in a programming Olympiad. They've been best friends ever since primary school and hopefully, that can somehow help them in teamwork. 지금은 올림피아드 시간입니다. Vanya와 Egor는 프로그래밍 올림피아드에 참가하기 위해 팀을 만들기로 결정합니다. 그들은 초등학교때부터 절친한 친구였고 희망컨데 그것이 팀워크에 어떻게든 도움이 될 수 있습니다. For each team Olympiad, Vanya takes his play cards with num.. 더보기 [코드포스 Practice8] C. Obtain Two Zeroes You are given two integers a and b. You may perform any number of operations on them (possibly zero). 당신에게 a와 b 두개의 정수가 주어졌다. 당신은 이 숫자들에 몇번이라도 연산할 수 있다. (0번이어도 됨) During each operation you should choose any positive integer x and set a:=a−x, b:=b−2x or a:=a−2x, b:=b−x. Note that you may choose different values of x in different operations. 각 연산을 하는 동안 당신은 어떤 양의 정수 x를 골라서 a:=a−x, b:=b−2x or a:=a−.. 더보기 [코드포스 Practice8] B. 2048 Game You are playing a variation of game 2048. Initially you have a multiset s of n integers. Every integer in this multiset is a power of two. 당신은 2048 변형 게임을 하고 있다. 처음에 당신은 n개의 정수가 있는 다중집합 s를 가지고 있다. 이 집합에 있는 모든 정수는 2의 제곱이다. You may perform any number (possibly, zero) operations with this multiset. 당신은 이 집합으로 몇번의 연산을 수행할 수 있다 (0번도 가능) During each operation you choose two equal integers from s, remo.. 더보기 [코드포스 Practice8] A. Alex and a Rhombus While playing with geometric figures Alex has accidentally invented a concept of a n-th order rhombus in a cell grid. 기하학적인 도형으로 놀다가 Alex는 우연히 좌표계에서 n번째 순서의 마름모 개념을 발명합니다 A 1-st order rhombus is just a square 1×1 (i.e just a cell). 첫번째 순서의 마름모는 단지 하나의 네모입니다 (즉, 한 칸임) A n-th order rhombus for all n≥2 one obtains from a n−1th order rhombus adding all cells which have a common side with it to it (l.. 더보기 [코드포스 Practice8] 후기 크리스마스라고 겨울 분위기 낸 코포 (이런거 좋아함) 닉네임 색깔이 이상하다 했더니 연말이라고 닉네임 색 바꿀 수 있었다! 게다가 문제 풀면 Accepted 안 뜨고 해피 뉴 이어 뜬다ㅋㅋㅋ 귀엽네 A - 11분 B - 30분 C - x분 D - 24분 E - x분 A번은 문제 이해를 잘못해서 다시 해석한다고 좀 걸렸고 B번은 어케풀지 하다가 투포인터!가 떠올라서 바로 투포인터로 풀었다. 아 미리 투포인터 연습 좀 할껄ㅋㅋㅋㅋㅋ 풀다가 낯설어서 당황했음. 당황한 30분.. C는 풀려고 했는데 도저히 몰라서 한시간 남을때까지만 고민하자 하다가 결국 못 풀어서 D번으로 넘어갔다. D번은 간단해서 규칙찾고 바로 E번으로 넘어갔다. E번 시작할때 한 35분 남았었나? 그래서 15분정도 고민하다가 모르겠어서 C번.. 더보기 코드포스 풀기 전 준비사항 열어야 할 텝 시간복잡도와 공간복잡도 https://burningjeong.tistory.com/48 온라인 C++ IDE https://www.jdoodle.com/online-compiler-c++14/ 파파고 https://papago.naver.com/ 영어사전 https://en.dict.naver.com/#/main 복붙해놓을거 #include #include #include #include #include #include #include #include #include #include #define xx first #define yy second #define all(x) (x).begin(), (x).end() #pragma warning(disable:4996) using namespac.. 더보기 이전 1 ··· 9 10 11 12 13 14 15 16 다음