1 条题解

  • 1
    @ 2026-8-13 16:55:04
    #include <bits/stdc++.h>
    using namespace std;
    
    int main() {
    	int n, m, x, y;
    	cin >> n >> m;
    	if (m % n != 0) {
    		x = m % n;
    		y = m / n + 1;
    	} else {
    		x = n;
    		y = m / n;
    	}
    	if (x == y) {
    		cout << "yes" << " ";
    	} else {
    		cout << "no" << " ";
    	}
    	if (y == n - (x - 1)) {
    		cout << "yes" << " ";
    	} else {
    		cout << "no" << " ";
    	}
    
    	return 0;
    }
    
    
    • 1

    信息

    ID
    20385
    时间
    1000ms
    内存
    512MiB
    难度
    1
    标签
    递交数
    62
    已通过
    12
    上传者