제출 #200924

#제출 시각아이디문제언어결과실행 시간메모리
200924SamAndKošnja (COCI17_kosnja)C++17
50 / 50
25 ms1272 KiB
#include <bits/stdc++.h> using namespace std; int main() { int tt; scanf("%d", &tt); while (tt--) { int n, m; scanf("%d%d", &n, &m); printf("%d\n", min(n, m) * 2 - 2); } return 0; }

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

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