Run ID | Author | Problem | Lang | Verdict | Time | Memory | Code Length | Submit Time |
---|---|---|---|---|---|---|---|---|
64139 | 还有库库 | 202503GESP一级图书馆里的老鼠 | C++ | Accepted | 0 MS | 240 KB | 216 | 2025-04-16 17:07:23 |
#include<iostream> using namespace std; int main() { int a; int n; int x; int y; cin>>n>>x>>y; if (y%x == 0) { a = n - y/x; } else { a = n - 1 - y / x; } cout<<a; return 0; }