Run ID 作者 问题 语言 测评结果 分数 时间 内存 代码长度 提交时间
431700 方相宜 【C1-7】k的倍数 C++ 通过 100 4 MS 252 KB 254 2026-03-09 20:39:05

Tests(2/2):


#include <iostream> using namespace std; int main() { int k, x, y; cin >> k >> x >> y; int count_y = y / k; int count_x_1 = (x - 1) / k; int result = count_y - count_x_1; cout << result << endl; return 0; }


测评信息: