JavaShuo
栏目
标签
(python-codefoces)Codeforces Round #540 (Div. 3) A. Water Buying
时间 2021-01-04
栏目
Python
繁體版
原文
原文链接
https://codeforces.com/contest/1118/problem/A python代码: import math q=int(input()) for i in range(q): n,a,b=map(int,input().split()) z=(math.floor(n/2)*min(2*a,b)+(n%2)*a) print(z)
>>阅读原文<<
相关文章
1.
Codeforces Round #540 (Div. 3)(部分题解)
2.
Codeforces Round #540 (Div. 3)题解
3.
Codeforces Round #540 (Div. 3) B. Tanya and Candies
4.
Codeforces Round #617 (Div. 3)B. Food Buying
5.
Codeforces Round #644 (Div. 3)(A~G)
6.
Codeforces Round #650 (Div. 3)(A-C)
7.
Codeforces Round #617 (Div. 3)
8.
Codeforces Round #598 (Div. 3)
9.
Codeforces Round #590 (Div. 3) C. Pipes
10.
Codeforces Round #590 (Div. 3)
更多相关文章...
•
PHP round() 函数
-
PHP参考手册
•
SQL ROUND() 函数
-
SQL 教程
•
为了进字节跳动,我精选了29道Java经典算法题,带详细讲解
•
算法总结-双指针
相关标签/搜索
buying
water
div.3
codeforces
3&&a
3.a
div
a'+'a
Python
CSS
PHP 7 新特性
Spring教程
MyBatis教程
0
分享到微博
分享到微信
分享到QQ
每日一句
每一个你不满意的现在,都有一个你没有努力的曾经。
最新文章
1.
No provider available from registry 127.0.0.1:2181 for service com.ddbuy.ser 解决方法
2.
Qt5.7以上调用虚拟键盘(支持中文),以及源码修改(可拖动,水平缩放)
3.
软件测试面试- 购物车功能测试用例设计
4.
ElasticSearch(概念篇):你知道的, 为了搜索…
5.
redux理解
6.
gitee创建第一个项目
7.
支持向量机之硬间隔(一步步推导,通俗易懂)
8.
Mysql 异步复制延迟的原因及解决方案
9.
如何在运行SEPM配置向导时将不可认的复杂数据库密码改为简单密码
10.
windows系统下tftp服务器使用
本站公众号
欢迎关注本站公众号,获取更多信息
相关文章
1.
Codeforces Round #540 (Div. 3)(部分题解)
2.
Codeforces Round #540 (Div. 3)题解
3.
Codeforces Round #540 (Div. 3) B. Tanya and Candies
4.
Codeforces Round #617 (Div. 3)B. Food Buying
5.
Codeforces Round #644 (Div. 3)(A~G)
6.
Codeforces Round #650 (Div. 3)(A-C)
7.
Codeforces Round #617 (Div. 3)
8.
Codeforces Round #598 (Div. 3)
9.
Codeforces Round #590 (Div. 3) C. Pipes
10.
Codeforces Round #590 (Div. 3)
>>更多相关文章<<