相关文章
2019 ICPC 南京区域赛 - H Prince and Princess(博弈+思维)
题目链接 题意
有 a a a个只说真话的人(其中一位是公主), b b b个只说假话的人, c c c个回答可以为真可以为假的人。向这些人进行询问,可以进行三种询问,分别为询问回答者的身份,其他任意一个人…
建站知识
2024/12/25 19:46:32
hdu-1029 Ignatius and the Princess IV
hdu-1029 Ignatius and the Princess IV
题目描述 Ignatius and the Princess IV Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32767 K (Java/Others)Total Submission(s): 28646 Accepted Submission(s): 12134 Problem Description “OK, you are no…
建站知识
2024/10/30 23:02:47
HDU:1027 Ignatius and the Princess II
Ignatius and the Princess II
Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others) Total Submission(s): 7791 Accepted Submission(s): 4601
题目链接 Problem Description Now our hero finds the door to the BEelzebub feng5166…
建站知识
2024/12/20 22:27:39
A - Ignatius and the Princess IV HDU - 1029(水题)
“OK, you are not too bad, em… But you can never pass the next test.” feng5166 says.
“I will tell you an odd number N, and then N integers. There will be a special integer among them, you have to tell me which integer is the special one after I tell yo…
建站知识
2024/10/30 2:32:37
1027 Ignatius and the Princess II
代码如下:
#include <iostream> #include<algorithm> using namespace std; const int maxn10005; int main() { int m,n,a[maxn]; while(cin>>n>>m) { for(int i1;i<n;i) a[i-1]i; m--; …
建站知识
2024/10/31 21:28:03
java 表示n_Javan_英文名Javan是什么意思
lowcal historyan 译我看了希伯来学者对此的看法,他们都同意,至少它是一个双关语。是的,它是一个表达“鸽子”的表弟,如Jonah aurally,并且它有词“miry”(根)的意思的一部分,并用于命名希腊(地名)。然而&a…
建站知识
2024/12/24 17:14:20
【BFS】Help the Princess!
题目描述 The people of a certain kingdom make a revolution against the bad government of the princess. The revolutionary army invaded the royal palace in which the princess lives. The soldiers of the army are exploring the palace to catch the princess. You…
建站知识
2024/11/2 10:27:54
HDU 1028 Ignatius and the Princess III——————数字拆分,母函数用法
Ignatius and the Princess III
Problem Description “Well, it seems the first problem is too easy. I will let you know how foolish you are later.” feng5166 says.
“The second problem is, given an positive integer N, we define an equation like this: Na[1]…
建站知识
2024/12/2 4:30:32