记录详情

Wrong Answer


  
# 状态 耗时 内存占用
#1 Accepted 1ms 208.0 KiB
#2 Accepted 1ms 232.0 KiB
#3 Accepted 1ms 216.0 KiB
#4 Accepted 1ms 228.0 KiB
#5 Accepted 1ms 220.0 KiB
#6 Accepted 1ms 232.0 KiB
#7 Wrong Answer 1ms 220.0 KiB
#8 Wrong Answer 1ms 228.0 KiB
#9 Accepted 1ms 220.0 KiB

代码

#include <iostream>
int m,n,t,ans = 0;
int main(){
	std::ios::sync_with_stdio(false);
	std::cin >> n >> m;
	for(int i = 0 ; i < n ; ++i){
		std::cin >> t;
		ans += t * (n - i);
	}
	if(ans > m)
		std::cout << "Yes";
	else
		std::cout << "No";
	return 0;
}

信息

递交者
类型
递交
题目
P1007 hitwh 2019 新生赛 H Songer and his army
语言
C++
递交时间
2020-12-23 10:28:48
评测时间
2020-12-23 10:28:48
评测机
分数
80
总耗时
13ms
峰值内存
232.0 KiB