목록생활 (730)
No Rules Rules
Dyslexia https://www.acmicpc.net/problem/8387 8387번: Dyslexia In the recent years children in Byteland have been hardly reading any books. This has a negative influence on the knowledge of orthography among Byteland residents. Teachers at schools do their best to change this situation. They organize many different te www.acmicpc.net // woohyeon.kim // kim519620.tistory.com #include using namespa..
Dyslexia https://www.acmicpc.net/problem/8371 8371번: Dyslexia In the recent years children in Byteland have been hardly reading any books. This has a negative influence on the knowledge of orthography among Byteland residents. Teachers at schools do their best to change this situation. They organize many different te www.acmicpc.net // woohyeon.kim // kim519620.tistory.com #include using namespa..
Speed Limit https://www.acmicpc.net/problem/4635 4635번: Speed Limit The input consists of one or more data sets. Each set starts with a line containing an integer n, 1 ≤ n ≤ 10, followed by n pairs of values, one pair per line. The first value in a pair, s, is the speed in miles per hour and the second value, t, is t www.acmicpc.net // woohyeon.kim // kim519620.tistory.com #include using namespa..
Speed Limit https://www.acmicpc.net/problem/14541 14541번: Speed Limit The input consists of one or more data sets. Each set starts with a line containing an integer n, (1 ≤ n ≤ 10), followed by n pairs of values, one pair per line. The first value in a pair, s, is the speed in miles per hour and the second value, t, is t www.acmicpc.net // woohyeon.kim // kim519620.tistory.com #include using nam..
Ship Selection https://www.acmicpc.net/problem/10180 10180번: Ship Selection Input begins with a line with one integer T (1 ≤ T ≤ 50) denoting the number of test cases. Each test case begins with a line with two space-separated integers N and D, where N (1 ≤ N ≤ 100) denotes the number of ships in the docking bay and D (1 www.acmicpc.net // woohyeon.kim // kim519620.tistory.com #include using nam..
꿍의 우주여행 https://www.acmicpc.net/problem/9501 9501번: 꿍의 우주여행 꿍은 우주여행을 하고 싶어져서 우주여행을 계획하기 시작했다. 몇 가지를 고려해본 결과 우주여행에는 우주선의 연료와 목적지까지의 도착시간이 가장 큰 영향을 미치는것으로 파악됐다. 꿍 www.acmicpc.net // woohyeon.kim // kim519620.tistory.com #include using namespace std; int main(){ ios::sync_with_stdio(false), cin.tie(NULL); register int T, N, D, V, F, C; cin >> T; for(register int t = 0, count; t > N..
Atrium https://www.acmicpc.net/problem/20353 20353번: Atrium The atrium of a traditional Roman dormus, much like the atria of today, is a perfectly square room designed for residents and guests to congregate in and to enjoy the sunlight streaming in from above. Or, in the case of Britannia, the rain streaming in fro www.acmicpc.net // woohyeon.kim // kim519620.tistory.com #include #include using ..
Contemporary Art https://www.acmicpc.net/problem/16600 16600번: Contemporary Art At the Van Abbemuseum of modern and contemporary art in Eindhoven, we always look to present our muses in the most interesting way possible. Sometimes we have our work cut out for us. Today we are exploring whether we can modify one of our perfectly-square www.acmicpc.net // woohyeon.kim // kim519620.tistory.com #inc..
Abbey Courtyard https://www.acmicpc.net/problem/15610 15610번: Abbey Courtyard Bath’s annual Christmas market runs from the 23rd of November 2017 until the 10th of December 2017. During this time, the market will occupy the entire square courtyard of Bath Abbey. To brighten things up at night, a single long strand of cheerful festi www.acmicpc.net // woohyeon.kim // kim519620.tistory.com #include..
공 https://www.acmicpc.net/problem/2695 2695번: 공 첫째 줄은 데이터 세트 수 P(1 ≤ P ≤ 1000)가 입력으로 들어온다. 각각의 데이터 세트는 한 줄로 구성되어 있으며 2개의 숫자가 공백으로 구분되어 있다. 유리공의 개수 B(1 ≤ B ≤ 50), 건물의 층 www.acmicpc.net // woohyeon.kim // kim519620.tistory.com #include using namespace std; int main(){ ios::sync_with_stdio(false), cin.tie(NULL); register int P, B, M, dp[51][1001]; cin >> P; for(register int p = 0; p < P; ++p) { cin..