제출 #887533

#제출 시각아이디문제언어결과실행 시간메모리
887533rainboyCooking (innopolis2018_final_B)C11
0 / 100
0 ms348 KiB
#include <stdio.h> int main() { long long k, d, t, ans2; scanf("%lld%lld%lld", &k, &d, &t), d *= (k + d - 1) / d, t *= 2; ans2 = t / (k + d) * d * 2 + (t % (k + d) <= k * 2 ? t % (k + d) : (t - k) * 2); printf("%lld.%d\n", ans2 / 2, ans2 % 2 == 0 ? 0 : 5); return 0; }

컴파일 시 표준 에러 (stderr) 메시지

B.c: In function 'main':
B.c:6:2: warning: ignoring return value of 'scanf' declared with attribute 'warn_unused_result' [-Wunused-result]
    6 |  scanf("%lld%lld%lld", &k, &d, &t), d *= (k + d - 1) / d, t *= 2;
      |  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...