Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
96005 汤弘毅 07苹果和虫子 C++ Wrong Answer 1 MS 276 KB 507 2024-11-02 17:12:52

Tests(5/10):


Code:

#include <iostream> using namespace std; int main(){ // int a,b; // cin>>a>>b; // if(a>b){ // cout<<a; // } // else{ // cout<<b; // } // int a; // cin>>a; // if(a>0){ // cout<<"YES"; // } // else{ // cout<<"NO"; // } // int a,b,c; // cin>>a>>b>>c; // if(a+b>c){ // cout<<"Yes"; // } // else{ // cout<<"No"; // } float n,t,s; cin>>n>>t>>s; int x; x = n-s/t; float y; y = n-s/t; if(x<0){ x=0; } if(x>y){ x = x+1; } cout<<x; }


Run Info:

------Input------
5 1 12
------Answer-----
0
------Your output-----
1