Submission #37970

#TimeUsernameProblemLanguageResultExecution timeMemory
37970tmkKošnja (COCI17_kosnja)C++14
0 / 50
13 ms2176 KiB
#include<bits/stdc++.h> using namespace std; #define st first #define nd second #define pb push_back typedef long long LL; int main() { ios_base::sync_with_stdio(0); cin.tie(0); int k; scanf("%d",&k); for(int i=0;i<k;i++) { int n,m; cin>>n>>m; int wynik=(min(n,m)-1)*2; printf("%d\n",wynik); } return 0; }

Compilation message (stderr)

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