Run ID 作者 问题 语言 测评结果 分数 时间 内存 代码长度 提交时间
5173 A班-许锘林 粗心医生 C++ 通过 100 1 MS 252 KB 305 2025-01-23 15:32:52

Tests(1/1):


#include <bits/stdc++.h> using namespace std; int main() { int n,m; while(cin>>n>>m) { int a[m]; int temp = 0; for(int i = 0;i < m;i++) { cin>>a[i]; temp += a[i]; } if(temp <= n) { cout<<"Yes"<<endl; } else { cout<<"No"<<endl; } } return 0; }


测评信息: