6114专题

hdu 6114

题目传送门: 假设矩阵的长边为n,短边为m,那么按题意摆放最多能放m个車,题目就转化为我们从1~n里边随意选择m个数,然后把它们按前后顺序挨个放在1~m即可 ac代码: #include <iostream>#include <cstdio>#include <cstring>using namespace std;const int maxn=1e9+7;long lo

hdu 6114/2017百度之星预赛B Chess(找规律)

Chess Time Limit: 2000/1000 MS (Java/Others)    Memory Limit: 32768/32768 K (Java/Others) Total Submission(s): 20    Accepted Submission(s): 16 Problem Description 車是中国象棋中的一种棋子,它能攻击同一行或同一

Codeup 6114 问题 A: Course List for Student (25)

题目链接:http://codeup.cn/problem.php?cid=100000596&pid=0 题目描述 Zhejiang University has 40000 students and provides 2500 courses. Now given the student name lists of all the courses, you are supposed to o