public class Solution
{
public bool CheckRecord(string s)
{
var Absent = 0;
var MaxLate = 0;
var ContiLate = 0;
var preChar = '\0';
转载
2017-04-19 11:30:00
22阅读
# 如何解决Redis 551错误
## 1. 介绍Redis 551错误
在开始解决Redis 551错误之前,我们需要先了解这个错误的背景和原因。Redis 551错误是指当Redis服务器遇到内存不足的情况时,会返回一个551错误码。这个错误码通常表示Redis服务器无法执行请求,因为没有足够的内存可用。
## 2. 解决步骤
下面是解决Redis 551错误的步骤和相应的代码示例。
原创
2023-09-21 22:55:56
48阅读
A题 枚举记录 #include<bits/stdc++.h> using namespace std; typedef long long ll; typedef pair<int,int> pll; const int N=2e6+10; const int mod=1e9+7; const i
转载
2021-01-27 18:52:00
71阅读
2评论
题意:有n堆箱子,m个
原创
2022-09-19 09:59:34
25阅读
tle了好几天= =提交20+次,我都怕cf说我恶意卡测评。。。 题意:一个数组,两种操作,一种l到r加一个值,还有一种查询整个数组里距离最远的某个数的距离 题解:分块,用vector+lowbound,加法用lazy标记,查询用lowbound,复杂度O(n*sqrt(n)*log(sqrt(n)
转载
2017-10-16 15:56:00
49阅读
Professor GukiZ doesn’t accept string as they are. He likes to swap some letters in string to obtain a new one.GukiZ has stringping some letters in a,
原创
2023-07-27 00:04:48
87阅读
点击打开链接A. GukiZ and Contesttime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputProfessor GukiZ likes prog
原创
2022-09-07 16:48:08
42阅读
A. Serval and Bus time limit per test1 second memory limit per test256 megabytes inputstandard input outputstandard output It is raining heavily. But this is the first day for Serval, who just became
原创
2023-04-04 11:31:30
78阅读
You are given a string representing an attendance record for a student. The record only contains the following three characters: 'A' : Absent. 'L' : L
转载
2019-03-08 12:13:00
29阅读
2评论
GukiZ and GukiZianaTime Limit: 10000msMemory Limit: 262144KBThis problem will be judged onCodeForces. Original ID:551E64-bit integer IO format:%I64d J...
转载
2015-09-09 21:23:00
61阅读
2评论
链接: http://codeforces.com/problemset/problem/551/C 思路:二分查找所需的时间t,m个人都有t个单位的时间,从后往前清空,直到答案最优#include using namespace std;#define ll long longint a[100005],b[100005];int main(){ in
原创
2023-08-15 17:32:26
65阅读
You are given a string s representing an attendance record for a student where each character signifies whether the student was absent, late, or prese
转载
2021-07-06 11:04:00
132阅读
2评论
……睡太晚了。。。脑子就傻了…… 这个题想的时候并没有想到该这样…… 题意大概是有n堆箱子从左往右依次排列,每堆ai个箱子,有m个人,最開始都站在第一个箱子的左边, 每个人在每一秒钟都必须做出两种选择中的一种:1若他的位置有箱子则搬走一个箱子,2往右走一步。 问把全部箱子都搞掉的最少时间…… 非常显
转载
2017-08-16 13:27:00
76阅读
2评论
You are given a string representing an attendance record for a student. The record only contains the
原创
2022-08-03 15:47:29
55阅读
Every applet must subclass Applet. Here is an example of an HTML file that will cause the browser to load and start the applet:
转载
2018-09-02 21:04:00
31阅读
2评论
[codeforces551E]GukiZ and GukiZiana 试题描述 Professor GukiZ was playing with arrays again and accidentally discovered new function, which he called GukiZ
转载
2017-05-03 21:18:00
39阅读
2评论
You are given a string representing an attendance record for a student. The record only contains the following three characters: 'A' : Absent. 'L' : L
转载
2020-02-05 07:36:00
53阅读
2评论
551. Student Attendance Record I*https://leetcode.com/problems/student-attendance-record-i/题目描述You are given a string representing an attenda
原创
2022-05-30 10:44:49
68阅读
题目:
You are given a string representing an attendance record for a student. The record only contains the following three characters:
'A' : Absent.'L' : Late.'P' : Present.
A student could
原创
2023-03-07 12:40:37
63阅读
551. 学生出勤记录 Istr 基础
原创
2023-05-15 16:59:00
67阅读