网站首页 站内搜索

搜索结果

查询Tags标签: pos,共有 510条记录
  • 牛客小白月赛38 C.糟糕的打谱员(DP)

    题目:糟糕的打谱员题意:给出一个长度为n(\(3 \leq n \leq 10^5\))的谱子,第\(i\)个谱子记录有两个数:\(c_i\)代表下这步棋的人为0或1(黑方白方),\(a_i\)代表此步棋下在某个地方的编号,此时需要计算出一个最长子序列的长度,满足相邻的两个数\(c_i \neq c_{i-1} …

    2021/9/25 23:15:21 人评论 次浏览
  • c/c++1-STL

    目录1,STL序列式容器 1,STL序列式容器array、vector、deque、list 和 forward_list 容器,其共同的特点是不会对存储的元素进行排序,元素排列的顺序取决于存储它们的顺序。序列式容器类别 特点array<T,N>(数组容器) 表示可以存储 N 个 T 类型的元素,是 C++ 本…

    2021/9/24 11:40:37 人评论 次浏览
  • c/c++1-STL

    目录1,STL序列式容器 1,STL序列式容器array、vector、deque、list 和 forward_list 容器,其共同的特点是不会对存储的元素进行排序,元素排列的顺序取决于存储它们的顺序。序列式容器类别 特点array<T,N>(数组容器) 表示可以存储 N 个 T 类型的元素,是 C++ 本…

    2021/9/24 11:40:37 人评论 次浏览
  • 【小Y学算法】??每日LeetCode打卡??——38.环形链表

    2021/9/22 11:10:26 人评论 次浏览
  • 【小Y学算法】??每日LeetCode打卡??——38.环形链表

    2021/9/22 11:10:26 人评论 次浏览
  • 一个简单的网址大全1.1.0(C++)

    前言: 这几天在反复琢磨饼干的代码,试着写了一个“低配高级”版(其实就是没饼干的厉害),还设计了一个logo(logo其实还是彩虹猫)。奉上代码: #include<bits/stdc++.h> #include "stdio.h" #include "windows.h" using namespace std; s…

    2021/9/20 20:26:53 人评论 次浏览
  • 一个简单的网址大全1.1.0(C++)

    前言: 这几天在反复琢磨饼干的代码,试着写了一个“低配高级”版(其实就是没饼干的厉害),还设计了一个logo(logo其实还是彩虹猫)。奉上代码: #include<bits/stdc++.h> #include "stdio.h" #include "windows.h" using namespace std; s…

    2021/9/20 20:26:53 人评论 次浏览
  • 【C语言程序设计第四版】例9-3代码

    #include <stdio.h>struct student{int num;char name[40];int computer, english, math;double average; }; int update_score(struct student *p, int n, int num, int course, int score);int main(void){int course, i , n, num, pos, score;struct student stu…

    2021/9/19 14:04:46 人评论 次浏览
  • 【C语言程序设计第四版】例9-3代码

    #include <stdio.h>struct student{int num;char name[40];int computer, english, math;double average; }; int update_score(struct student *p, int n, int num, int course, int score);int main(void){int course, i , n, num, pos, score;struct student stu…

    2021/9/19 14:04:46 人评论 次浏览
  • 第15次CCF201812-2 小明放学(100分)

    vsCode C++ #include <windows.h> //keep external terminal #include <bits/stdc++.h> using namespace std;typedef long long LL; int r, y, g, sum_ryg;LL waitTime(int k, int t, LL ans) {LL pos;if (k == 1)pos = (r - t + ans) % sum_ryg;else if (k …

    2021/9/18 23:35:24 人评论 次浏览
  • 第15次CCF201812-2 小明放学(100分)

    vsCode C++ #include <windows.h> //keep external terminal #include <bits/stdc++.h> using namespace std;typedef long long LL; int r, y, g, sum_ryg;LL waitTime(int k, int t, LL ans) {LL pos;if (k == 1)pos = (r - t + ans) % sum_ryg;else if (k …

    2021/9/18 23:35:24 人评论 次浏览
  • 【虾皮面试手撕算法】:合并两个有序链表

    #include <bits/stdc++.h> using namespace std;struct ListNode{int val;ListNode* next;ListNode(int val_) : val(val_), next(nullptr){} };ListNode* Merge(ListNode* l1, ListNode* l2){ListNode* dummy = new ListNode(-1);ListNode* curr = dummy;while(l1 …

    2021/9/17 14:05:01 人评论 次浏览
  • 【虾皮面试手撕算法】:合并两个有序链表

    #include <bits/stdc++.h> using namespace std;struct ListNode{int val;ListNode* next;ListNode(int val_) : val(val_), next(nullptr){} };ListNode* Merge(ListNode* l1, ListNode* l2){ListNode* dummy = new ListNode(-1);ListNode* curr = dummy;while(l1 …

    2021/9/17 14:05:01 人评论 次浏览
  • D2. Seating Arrangements (hard version)

    题目: It is the hard version of the problem. The only difference is that in this version 1≤n≤300 In the cinema seats can be represented as the table with n rows and m columns. The rows are numbered with integers from 1 to n. The seats in each row a…

    2021/9/13 23:10:40 人评论 次浏览
  • D2. Seating Arrangements (hard version)

    题目: It is the hard version of the problem. The only difference is that in this version 1≤n≤300 In the cinema seats can be represented as the table with n rows and m columns. The rows are numbered with integers from 1 to n. The seats in each row a…

    2021/9/13 23:10:40 人评论 次浏览
扫一扫关注最新编程教程