Recent Posts
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | ||||||
2 | 3 | 4 | 5 | 6 | 7 | 8 |
9 | 10 | 11 | 12 | 13 | 14 | 15 |
16 | 17 | 18 | 19 | 20 | 21 | 22 |
23 | 24 | 25 | 26 | 27 | 28 |
Tags
- tolerated
- 자원부족
- JanusWebRTC
- table not found
- taint
- python
- PersistenceContext
- Value too long for column
- k8s #kubernetes #쿠버네티스
- preemption #
- mp4fpsmod
- 겨울 부산
- JanusWebRTCServer
- 오블완
- terminal
- pytest
- JanusGateway
- 헥사고날아키텍처 #육각형아키텍처 #유스케이스
- 코루틴 컨텍스트
- 티스토리챌린지
- VARCHAR (1)
- JanusWebRTCGateway
- PytestPluginManager
- 개성국밥
- Spring Batch
- vfr video
- 달인막창
- 깡돼후
- 코루틴 빌더
- kotlin
Archives
너와 나의 스토리
(BOJ) 5543 상근날드 본문
반응형
문제: https://www.acmicpc.net/problem/5543
소스코드:
#include <iostream> #include <vector> #include <map> #include <queue> #include <string> #include <algorithm> using namespace std; int a[3], b[2],result=4000; int main() { ios::sync_with_stdio(false); cin.tie(NULL), cout.tie(NULL); for (int i = 0; i < 3; i++) { cin >> a[i]; } for (int i = 0; i < 2; i++) { cin >> b[i]; } for (int i = 0; i < 3; i++) { for (int j = 0; j < 2; j++) { result = min(result, a[i] + b[j]); } } cout << result - 50; return 0; } |
반응형
'Algorithm > 기타' 카테고리의 다른 글
(BOJ) 2573 빙산 (0) | 2019.02.24 |
---|---|
(BOJ) 1120 문자열 (0) | 2019.02.24 |
(BOJ) 9461 파도반 수열 (0) | 2019.02.24 |
(BOJ) 1946 신입 사원 (0) | 2019.02.21 |
(BOJ) 2109 순회강연 (1) | 2019.02.21 |
Comments