首页 > TAG信息列表 > 1148

1148 Werewolf - Simple Version (20 分)

Werewolf(狼人杀) is a game in which the players are partitioned into two parties: the werewolves and the human beings. Suppose that in a game, player #1 said: “Player #2 is a werewolf.”; player #2 said: “Player #3 is a human.”; player #3 said: “Player #4 i

pat 1148

1148 Werewolf - Simple Version (20分)   Werewolf(狼人杀) is a game in which the players are partitioned into two parties: the werewolves and the human beings. Suppose that in a game, player #1 said: "Player #2 is a werewolf."; player #2 said: &

信息学奥赛一本通C++语言——1148:连续出现的字符

【题目描述】 给定一个字符串,在字符串中找到第一个连续出现至少k次的字符。 【输入】 第一行包含一个正整数k,表示至少需要连续出现的次数。1 ≤ k ≤ 1000。 第二行包含需要查找的字符串。字符串长度在1到2500之间,且不包含任何空白符。 【输出】 若存在连续出现至少k次的字

解决Mac在MySQL workbench 中出现的Error 1148

在workbench上尝试导入.txt文件后,出现1148错误提示。 load data local infile '/Users/w**/Desktop/SQL/all.txt' into table Monthly_Indicator fields terminated by '\t' ignore 1 lines; 提示错误 ERROR 1148 (42000): The used command is not allowed with

1148 H. Holy Diver

1148 H. Holy Diver 题意: 强制在线,初始数组为空.每次询问给出四个整数\(a,l,r,k\),表示在数组末尾添加\(a\),求满足\(l\leq x\leq y\leq r\)以及\(\text{mex}(a_{x},a_{x+1},\cdots,a_y)=k\)的整数对\(x,y\)的个数. \(\text{mex}\)定义可见Mex (mathematics) - Wikipedia. 题解:

1148 Werewolf - Simple Version (20 分)

1148 Werewolf - Simple Version (20 分) Werewolf(狼人杀) is a game in which the players are partitioned into two parties: the werewolves and the human beings. Suppose that in a game, player #1 said: "Player #2 is a werewolf."; player #2 said: "P