# | Submission time | Handle | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
473115 | 2021-09-15T08:10:19 Z | Ahmed_Solyman | Košnja (COCI17_kosnja) | C++14 | 0 ms | 0 KB |
#include <bits/stc++.h> 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; } }