제출 #473117

#제출 시각아이디문제언어결과실행 시간메모리
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...