Codeforces Round 934 (Div. 2)A. Destroying Bridges Codeforces Round 934 (Div. 2) A. Destroying Bridges 123456789101112131415161718#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 #Codeforces Round 934 (Div. 2) 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 算法设计与分析实训课 Previous Codeforces Round 936 (Div. 2) A. Median of an Array Next