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.
Window下Ribbit MQ安裝
2.
Linux下Redis安裝及集羣搭建
3.
shiny搭建網站填坑戰略
4.
Mysql8.0.22安裝與配置詳細教程
5.
Hadoop安裝及配置
6.
Python爬蟲初學筆記
7.
部署LVS-Keepalived高可用集羣
8.
keepalived+mysql高可用集羣
9.
jenkins 公鑰配置
10.
HA實用詳解
本站公眾號
歡迎關注本站公眾號,獲取更多信息
相關文章
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
>>更多相關文章<<