QOJ.ac
QOJ
ID | 题目 | 提交者 | 结果 | 用时 | 内存 | 语言 | 文件大小 | 提交时间 | 测评时间 |
---|---|---|---|---|---|---|---|---|---|
#407341 | #7728. Ramen | sdutcm_zcy | WA | 1ms | 3644kb | C++11 | 266b | 2024-05-08 16:09:20 | 2024-05-08 16:09:21 |
Judging History
answer
#include<iostream>
using namespace std;
int main()
{
int n;
cin >>n;
int sum = 0;
int arr[100];
for(int i =0;i<n;i++)
{
cin>>arr[i];
sum+=arr[i];
if(sum<=0)
{
cout<<"No"<<endl;
return 0;
}
}
cout<<"Yes"<<endl;
return 0;
}
詳細信息
Test #1:
score: 0
Wrong Answer
time: 1ms
memory: 3644kb
input:
3 1 2 -5
output:
No
result:
wrong answer expected YES, found NO [1st token]