목록문제풀이 (155)
말랑한 하루
[SW Expert Academy] 9997 미니멀리즘 시계 [C++]
[ 핵심풀이 ] [ 핵심소스 ] [ C++ ] #include #pragma warning(disable:4996) using namespace std; #define endl "\n" int main() { int tc; cin >> tc; for (int t = 1; t > theta; theta *= 2; int hour = 0, minute = 0; hour = theta / 60; minute = theta % 60; cout
문제풀이/SWexpert Academy
2021. 1. 20. 01:22
[SW Expert Academy] 6730 장애물 경주 난이도 [C++]
[ 핵심풀이 ] [ 핵심소스 ] [ C++ ] #include #include #pragma warning(disable:4996) using namespace std; #define endl "\n" #define INF 2147483647 #define MAX 100 int block; int obstacle[MAX]; int main() { int tc; cin >> tc; for (int t = 1; t > block; for (int i = 0; i > obstacle[i]; for (int i = 0; i < block - 1; i++) { int stay = obstacle[i] - obstacle[i + 1]; if (stay < 0) high = high..
문제풀이/SWexpert Academy
2021. 1. 20. 01:22