码迷,mamicode.com
首页 > 其他好文 > 详细

CodeForces 408A 手速题

时间:2015-02-25 00:42:23      阅读:178      评论:0      收藏:0      [点我收藏+]

标签:

//CodeForces 408A

 1 #include "iostream"
 2 #include "cstdio"
 3 #include "cstring"
 4 #include "algorithm"
 5 using namespace std;
 6 int n, k[110], tmp, res = 0x3f3f3f3f;
 7 
 8 int main()
 9 {
10     int i, j, ans;
11     scanf("%d", &n);
12     for(i = 1; i <= n; ++i)
13         scanf("%d", &k[i]);
14     for(i = 1; i <= n; ++i) {
15         tmp = 0;
16         for(j = 1; j <= k[i]; ++j) {
17             scanf("%d", &ans);
18             tmp += ans * 5 + 15;
19         }
20         res = min(tmp, res);
21     }
22     printf("%d\n", res);
23 }

 

CodeForces 408A 手速题

标签:

原文地址:http://www.cnblogs.com/AC-Phoenix/p/4299061.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!