Codeforces Round 934 (Div. 2)A. Destroying Bridges

Codeforces Round 934 (Div. 2)

A. Destroying Bridges

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#include<bits/stdc++.h>
using namespace std;
int main()
{
ios::sync_with_stdio(false);
cin.tie(nullptr);
int t;
cin >> t;
int n,k;
while(t--)
{
cin >> n >> k;
if(k>=n-1)
cout << "1" << endl;
else
cout << n << endl;
}
}

Codeforces Round 934 (Div. 2)A. Destroying Bridges
http://snowdreamxue.github.io/2024/10/21/Codeforces Round 934 (Div. 2)/A.DestroyingBridges/
Author
SnowDream
Posted on
October 21, 2024
Licensed under