![](https://img-blog.csdnimg.cn/20201014180756724.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
暑期集训
文章平均质量分 82
liblnuex
这个作者很懒,什么都没留下…
展开
-
暑期训练赛3F题(HDU4355)
Party All the TimeTime Limit: 6000/2000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 5260 Accepted Submission(s): 1624Problem DescriptionIn the原创 2016-07-31 08:50:24 · 336 阅读 · 0 评论 -
暑期集训训练3练习题B - Toxophily(HDU2298)
这道题主要是需要推两个公式:水平方向上:v*cos(a)*t=x;竖直方向上:v*sin(a)*t-g*t*t/2.0=y;得到:y=x*tan(a)-g*x*x/(v*v*cos(a)cos(a)*2.0);可以证明这个y是随着角度a呈凹曲线变化的,虽然我也不知道怎么证明。所以我的代码如下:原创 2016-07-31 08:46:37 · 391 阅读 · 0 评论 -
暑期集训训练赛2(uva11210) 你会打麻将吗?
麻将的公式是:mABC+nDDD+EE,所以要胡牌的话就把”听张“加到牌里去,然后dfs这三种情况看是否能成立#include #include #include #include #include const char *MJ[]={"0","1T", "2T", "3T", "4T", "5T", "6T", "7T", "8T", "9T", "1S原创 2016-07-31 08:35:29 · 416 阅读 · 0 评论 -
2016暑期训练4C-PrimePath(POJ3126)
C - Prime PathTime Limit:1000MS Memory Limit:65536KB 64bit IO Format:%lld & %lluSubmit Status Practice POJ 3126DescriptionThe ministers of the cabinet were quite upset原创 2016-08-01 08:15:52 · 370 阅读 · 0 评论 -
暑期集训Day2训练赛D题Spreadsheets(codeforces 1B)
应该是一道比较简单的模拟题,然而弱菜如我纠结于1WA好久。最终找到的错误竟是不久前犯过的错误,所以,数字转字符时模26是一定考虑”Z“这个特殊情况的。#include #include #include using namespace std;int main(){ int T; cin>>T; while(T--) { string str;原创 2016-07-21 13:43:31 · 584 阅读 · 0 评论 -
POJ2478 Farey Sequence
Farey SequenceTime Limit: 1000MS Memory Limit: 65536KTotal Submissions: 15250 Accepted: 6058DescriptionThe Farey Sequence Fn for any integer n with n >= 2 is the原创 2016-09-11 22:32:00 · 298 阅读 · 0 评论