Submission #473117

#TimeUsernameProblemLanguageResultExecution timeMemory
473117Ahmed_SolymanKošnja (COCI17_kosnja)C++14
0 / 50
135 ms536 KiB
#include <bits/stdc++.h> using namespace std; typedef long long ll; int main(){ ll t;cin>>t; while(t--){ ll n,m;cin>>n>>m; if(n>1)cout<<1+(2*(m-1)); else cout<<0<<endl; } }
#Verdict Execution timeMemoryGrader output
Fetching results...