Run ID 作者 问题 语言 测评结果 分数 时间 内存 代码长度 提交时间
333913 小林老师 【C3-7】采购水果 C++ 通过 100 5 MS 248 KB 232 2025-07-16 22:04:07

Tests(3/3):


#include<bits/stdc++.h> using namespace std; int main(){ int n, x, y, cnt=0; cin>>n>>x>>y; for(int i=10; i<n/x; i++){ for(int j=10; j<n/y; j++){ if(x*i+y*j==n){ cnt++; } } } cout<<cnt; return 0; }


测评信息: