JavaShuo
欄目
標籤
1104 Sum of Number Segments (20 point(s))
時間 2021-01-16
標籤
Pat甲級
欄目
Java開源
简体版
原文
原文鏈接
#include<iostream> #include<cstdio> using namespace std; double res, x; int n; int main() { scanf("%d", &n); for(int i = 1; i <= n; ++i) scanf("%lf", &x), res += x * (n - i + 1) * i; printf("%.2f\n
>>阅读原文<<
相關文章
1.
1104 Sum of Number Segments (20分)
2.
1104 Sum of Number Segments
3.
PAT 1104 Sum of Number Segments (20 分)
4.
lc434. Number of Segments in a String
5.
leetcode1155 Number of Dice Rolls With Target Sum (tag DP)
6.
[Swift]LeetCode434. 字符串中的單詞數 | Number of Segments in a String
7.
[POJ 3788] Interior Points of Lattice Polygons
8.
Codeforces 1462F The Treasure of The Segments
9.
【CF429E】Points and Segments 歐拉回路
10.
447. Number of Boomerangs
更多相關文章...
•
SQL SUM() 函數
-
SQL 教程
•
XSLT format-number() 函數
-
XSLT 教程
•
爲了進字節跳動,我精選了29道Java經典算法題,帶詳細講解
•
算法總結-歸併排序
相關標籤/搜索
points
segments
sum
number
20%20%
20%
129.sum
for...of
Java開源
Spring教程
0
分享到微博
分享到微信
分享到QQ
每日一句
每一个你不满意的现在,都有一个你没有努力的曾经。
最新文章
1.
部署Hadoop(3.3.0)僞分佈式集羣
2.
從0開始搭建hadoop僞分佈式集羣(三:Zookeeper)
3.
centos7 vmware 搭建集羣
4.
jsp的page指令
5.
Sql Server 2008R2 安裝教程
6.
python:模塊導入import問題總結
7.
Java控制修飾符,子類與父類,組合重載覆蓋等問題
8.
(實測)Discuz修改論壇最後發表的帖子的鏈接爲靜態地址
9.
java參數傳遞時,究竟傳遞的是什麼
10.
Linux---文件查看(4)
本站公眾號
歡迎關注本站公眾號,獲取更多信息
相關文章
1.
1104 Sum of Number Segments (20分)
2.
1104 Sum of Number Segments
3.
PAT 1104 Sum of Number Segments (20 分)
4.
lc434. Number of Segments in a String
5.
leetcode1155 Number of Dice Rolls With Target Sum (tag DP)
6.
[Swift]LeetCode434. 字符串中的單詞數 | Number of Segments in a String
7.
[POJ 3788] Interior Points of Lattice Polygons
8.
Codeforces 1462F The Treasure of The Segments
9.
【CF429E】Points and Segments 歐拉回路
10.
447. Number of Boomerangs
>>更多相關文章<<