CF411div2 A. Fake NP

xiaoxiao2021-02-27  177

除非l==r 最大值等于本身  那就是2是最多的  每两个数有一个被除数2 

#include <stdio.h> #include <bits/stdc++.h> #define mod 1000000007 #define ll long long using namespace std; int l,r; int main() { cin>>l>>r; if(l==r) cout<<l; else if((l%3==0) && (r==l+3))cout<<3; else cout<<2<<endl; return 0; }

转载请注明原文地址: https://www.6miu.com/read-11192.html

最新回复(0)