반응형
Notice
Recent Posts
Recent Comments
Link
목록문제풀이 (2)
philaphillip
[코드업:1180] 만능 휴지통 풀이
풀어보고 확인차 보시거나 아니면 진짜로 모르겠는 분만 보세요! 밑에 있음 코드업 풀이 #include int main() { int n, res; scanf("%d", &n); res = (n % 10 * 10) + (n / 10); res = res * 2; res = res % 100; printf("%d\n", res); if (res = 100) { num = num - 100; } printf("%d\n", num); if (num
알고리즘/C언어
2023. 3. 22. 21:37
[코드업: 1165] 축구의 신 풀이
문제를 풀어보고 답을 보세요 코드업 풀이 #include int main() { int time, a, cnt, rest; scanf("%d %d", &time, &a); cnt = (90 - time) / 5; rest = (90 - time ) % 5; a = a + cnt; if (rest != 0) a++; printf("%d", a); return 0; } 내 풀이 #include int main() { int time, score; scanf("%d %d", &time, &score); time = 90 - time; if (time == 0) { printf("%d", score); } else { score += 1; if (time >= 5) { score += (time - 1) / 5..
알고리즘/C언어
2023. 3. 22. 21:00