码迷,mamicode.com
首页 >  
搜索关键字:begin now    ( 14068个结果
1047 Student List for Course ——PAT甲级真题
1047 Student List for Course Zhejiang University has 40,000 students and provides 2,500 courses. Now given the registered course list of each student, ...
分类:其他好文   时间:2021-02-17 14:09:06    阅读次数:0
AtCoder Beginner Contest 120
A - Favorite Sound #include<bits/stdc++.h> using namespace std; const int N = 1e6 + 5; typedef long long LL; int main(){ int a, b, c; cin >> a >> b >> ...
分类:其他好文   时间:2021-02-16 12:44:42    阅读次数:0
P1562 还是N皇后
原题链接 考察:状压dp 时隔多年的复习233,还是做出来了 思路: 参考正常版的八皇后.我们需要标记左斜线,右斜线,已放棋子的列.在正常版我们是用数组记录,这里用状压dp可以用二进制位记录.所以三个变量now标记列,left是左斜线,right是右斜线.回溯不同于正常的dfs,正常的八皇后是用fo ...
分类:其他好文   时间:2021-02-16 12:27:45    阅读次数:0
PAT 甲级 1012 The Best Rank 模拟
地址 https://pintia.cn/problem-sets/994805342720868352/problems/994805502658068480 主要是模拟 题意比较绕。 题目大意是 接受各个学生的三门成绩 C M E, 然后四舍五入计算出平均成绩A 在 接受询问的学生的id后 打印 ...
分类:其他好文   时间:2021-02-16 11:53:57    阅读次数:0
1069 The Black Hole of Numbers (20 分)
注意不满$4$位的话要补成$4$位。 string s; set<int> S; int main() { cin>>s; while(s.size()<4) s='0'+s; while(true) { sort(s.begin(),s.end(),greater<char>()); string ...
分类:其他好文   时间:2021-02-15 12:21:49    阅读次数:0
Delphi - 生成GUID
uses SysUtils; // 生成GUID function TForm2.GetGUID: string; var LTep: TGUID; sGUID: string; begin CreateGUID(LTep); sGUID := GuidToString(LTep); sGUID : ...
分类:Windows程序   时间:2021-02-15 12:21:06    阅读次数:0
Go语言基础之time包
Go语言基础之time包 时间和日期是我们编程中经常会用到的,本文主要介绍了Go语言内置的time包的基本用法。 time包 time包提供了时间的显示和测量用的函数。日历的计算采用的是公历。 时间类型 time.Time类型表示时间。我们可以通过time.Now()函数获取当前的时间对象,然后获取 ...
分类:编程语言   时间:2021-02-10 13:08:17    阅读次数:0
2020 BIT冬训-贪心 G - Voting CodeForces - 749C
Problem Description There are n employees in Alternative Cake Manufacturing (ACM). They are now voting on some very important question and the leading ...
分类:其他好文   时间:2021-02-10 13:08:04    阅读次数:0
is_sorted
leetcode打卡 题面 class Solution { public: bool checkPossibility(vector<int> &nums) { int n = nums.size(); for (int i = 0; i < n - 1; ++i) { int x = nums[ ...
分类:其他好文   时间:2021-02-08 12:11:43    阅读次数:0
gcc/g++ 安全编码
安全编译: NX(堆栈不可执行): -z noexecstack SP(栈保护):-fstack-protector-all 或 -fstack-protector-strong BIND_NOW(立即绑定):-Wl,z,now 或 LD_BIND_NOW=1 RELRO(只读重定位):-Wl,-z ...
分类:其他好文   时间:2021-02-08 11:52:19    阅读次数:0
14068条   上一页 1 ... 15 16 17 18 19 ... 1407 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!