
杂题
算法好难呀
成功晋级西交研究生(其实没啥用)
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
ccf 学生排队
include include include include include include using namespace std; typedef long long LL; ///o(っ。Д。)っ AC万岁!!!!!!!!!!!!!!const int maxn = 1700000, inf = -199999999; LL str[maxn] = {}, sarr[2][maxn]原创 2017-09-06 19:06:32 · 422 阅读 · 0 评论 -
2017 ACM-ICPC 亚洲区(南宁赛区)网络赛 B Train Seats Reservation
You are given a list of train stations, say from the station 11 to the station 100100. The passengers can order several tickets from one station to another before the train leaves the station one.原创 2017-09-28 20:52:57 · 308 阅读 · 0 评论 -
哈理工oj 1005 Counting Subsequences
Counting Subsequences Time Limit: 5000 MS Memory Limit: 65536 K Total Submit: 905(280 users) Total Accepted: 253(219 users) Rating: Special Judge: No Desc原创 2017-10-05 15:59:14 · 727 阅读 · 0 评论 -
哈理工oj1003 Tiles of Tetris, NOT!
一道水题,题意:给出两个数字作为长方形的长和宽,问最少需要多少个长方形才能拼成一个正方形。 思路:求两个数的最小公倍数,然后求出这两个数分别除掉最小公倍数之后的乘积。 详解: 长和宽互质的长方形拼成正方形的最小个数就是:其长和宽的乘积。如果长和宽不互质,那么只需除掉长和宽的最小公倍数即可。 代码: #include <iostream> #include <cstri...原创 2019-06-18 15:15:58 · 296 阅读 · 1 评论