제출 #1239864

#제출 시각아이디문제언어결과실행 시간메모리
1239864JerBikeparking (EGOI24_bikeparking)C++20
9 / 100
32 ms328 KiB
#include <bits/stdc++.h> using namespace std; typedef long long ll; int n; ll k; int main() { scanf("%d", &n); for (int i = 0; i < 2 * n; i++) scanf("%lld", &k); printf("%lld\n", max(0LL, (ll)n * k - 2LL * k)); return 0; }

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

Main.cpp: In function 'int main()':
Main.cpp:12:10: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
   12 |     scanf("%d", &n);
      |     ~~~~~^~~~~~~~~~
Main.cpp:15:14: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
   15 |         scanf("%lld", &k);
      |         ~~~~~^~~~~~~~~~~~
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...