2 条题解

  • 1
    @ 2025-1-27 19:51:07

    说明

    黄蓉中了毒,在 tt 时间内不解毒就会毒发身亡。郭靖用内功帮她把毒逼出来,每个单位时间可以逼出 mm 点毒,而黄蓉一共中了 nn 点毒。现在请你判断黄蓉能否得救?

    输入格式

    三个整数 tt,nn,mm (1≤t,n,m≤10^4 )。

    输出格式

    如果黄蓉能得救,输出"yes";否则输出"no"。

    • 1
      @ 2025-1-12 13:42:28
      #include <bits/stdc++.h>
      #include <iostream>
      #include <iomanip>
      #include <ios>
      #include <iosfwd>
      #include <istream>
      #include <ostream>
      #include <cstring>
      #include <cstdio>
      #include <stdio.h>
      #include <string.h>
      #include <assert.h>
      #include <ctype.h>
      #include <errno.h>
      #include <float.h>
      #include <limits.h>
      #include <locale.h>
      #include <math.h>
      #include <stdlib.h>
      #include <time.h>
      #include <wchar.h>
      #include <wctype.h>
      #include <complex.h>
      #include <fenv.h>
      #include <inttypes.h>
      #include <stdbool.h>
      #include <stdint.h>
      #include <tgmath.h>
      #include <vector>
      #include <algorithm>
      #include <cmath>
      #include <algorithm>
      #include <bitset>
      #include <cctype>
      #include <cerrno>
      #include <clocale>
      #include <cmath>
      #include <complex>
      #include <cstdlib>
      #include <ctime>
      #include <deque>
      #include <exception>
      #include <fstream>
      #include <functional>
      #include <limits>
      #include <list>
      #include <map>
      #include <queue>
      #include <set>
      #include <sstream>
      #include <stack>
      #include <stdexcept>
      #include <streambuf>
      #include <string>
      #include <utility>
      #include <vector>
      #include <cwchar>
      #include <cwctype>
      using namespace std;
      int  main(){
          double t,n,m;
          cin>>t>>n>>m;
          if (n/m>t) cout<<"no";
          else cout<<"yes";
      }
      
      • 1

      信息

      ID
      476
      时间
      1000ms
      内存
      64MiB
      难度
      4
      标签
      递交数
      69
      已通过
      34
      上传者