Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
7079 侯宜辰 07苹果和虫子 C++ Wrong Answer 0 MS 256 KB 411 2025-04-04 17:38:05

Tests(1/10):


Code:

#include<iostream> // cin\cout\endl #include<cstdio> //scanf()\printf() #include<cstring> // strcpy()\strcat()\strcmp()\strlen()\memset() #include<cmath> //sqrt()\pow()\abs()\ceil()\floor()\max()\min() using namespace std; int main(){ int n,x,y; cin>>n>>x>>y; int eaten = min(y / x, n); int remaining = n - eaten; cout << remaining << endl; return 0; }


Run Info:

------Input------
549 8 28
------Answer-----
545
------Your output-----
546