题目题意:给定两个字符串:原始串和实际串,求差集#include<iostream>#b; for(auto i : b) if(i>='a'&am...
原创 2023-06-27 10:16:25
54阅读
Problem Description:On ar on screen.Now given a string t...
原创 2023-06-28 15:35:25
29阅读
转载 2017-05-24 12:27:00
71阅读
2评论
#include#includeconst int maxn = 100000 + 5;int last, cur, next[maxn];char s[maxn];int main(){ while(scanf("%s", s+1) == 1) { int n = strlen(s+1); last = cur = 0; nex
原创 2022-08-05 15:46:22
40阅读
1084 Broken Keyboard (20 point(s))On a broken keyboard, some of the keys are w
原创 2022-09-15 11:05:37
57阅读
在typeOut长度范围内 original和打出的typeOut一样 两者都加, 否则typeOut缺失看看这个缺失的在不再brokenkeys里面,不在加; 在typeOut长度范围外 看看剩下的original是否有不在brokenkeys里面的,不在加
原创 2022-11-25 11:13:31
57阅读
http://acm.sdut.edu.cn/sdutoj/problem.php?action=showproblem&problemid=2381当时比赛的时候看了看这题没什么想法 就去看别的题了 之后cz很快就A了 晚上看了下他的代码 敲了敲遍历一遍 之前标记的会影响后面算数的删掉View Code 1 #include <iostream> 2 #include<cstdio> 3 #include<string.h> 4 using namespace std; 5 char c[1000011]; 6 int f[500]; 7 int
转载 2012-08-29 22:08:00
57阅读
2评论
水题~。 set<char> S; set<char> res; string a,b; int main() { cin>>a>>b; for(auto t:b) { t=toupper(t); S.insert(t); } for(auto t:a) { t=toupper(t); if(S.c
转载 2021-02-17 16:59:00
66阅读
On a broken keyboard, some of the keys are worn out(破旧的). So when you type some sentences, the characters corresponding to those ke
原创 2022-05-25 17:50:42
41阅读
题目例如以下: On a broken keyboard, some of the keys are worn out. So when you type some sentences, the characters corresponding to those keys will not appe
原创 2021-08-07 09:44:04
100阅读
On a broken keyboard, some of the keys are worn out. So when you type some sentences, the characters corresponding to those keys will not appear on sc
转载 2018-03-25 13:36:00
50阅读
1084Broken Keyboard(20分)On a broken keyboard, some of the keys are worn out. S
原创 2022-09-19 15:41:20
36阅读
​​https://pintia.cn/problem-sets/994805342720868352/problems/994805382902300672​​输入格式:7_This_is_a_test_hs_s_a_es输出格式:7TI【大致思路】       分别读入两个字符串,第一个for循环枚举第一个字符串,内部嵌套的第二个for枚举第二个字符串,如果是小写
原创 2022-07-14 10:16:30
63阅读
原题及翻译Broken Keyboard (...
转载 2019-02-24 08:43:00
79阅读
2评论
原题及翻译Broken Keyboard (a.k.a. Beiju Text) 破碎的键盘(a.k.a. Beiju Text) You’re typing a long text with a broken keyboard. 您正在键入一个破碎键盘的长文本。 Well it’s not so badly broken. 好吧,它没有那么糟糕。 The only problem with t
原创 2022-03-23 18:26:52
157阅读
On a broken keyboard, some of the keys are worn out. So when you type some sentences are supposed to...
原创 2023-05-18 15:18:13
44阅读
原题及翻译Broken Keyboard (...
转载 2019-02-24 08:43:00
84阅读
2评论
原题及翻译Broken Keyboard (...
转载 2019-02-24 08:43:00
62阅读
2评论
你正在用坏了的键盘键入一段很长的文本。嗯,它没那么坏。唯一的问题 使用键盘时,有时会自动按下“home”键或“end”键 (内部)。 你没有意识到这个问题,因为你专注于文本,甚至没有打开 班长完成键入后,您可以在屏幕上看到文本(如果打开显示器)。 在中文里,我们可以称之为北居。你的任务是找到悲剧文本。输入 有几个测试用例。每个测试用例都是一行,至少包含一个,最多包含100000个 字母、下划线和两
原创 2023-11-01 16:01:16
98阅读
题目链接On a broken keyboard, some of the keys are worn out. So when you type some sentences, the characters corresponding to those keys will not appear on screen.Now given a string that you are suppo...
原创 2021-07-12 10:19:10
57阅读
  • 1
  • 2
  • 3
  • 4
  • 5