相关文章
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…
建站知识
2025/1/11 10:48:09
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
HDU 1027 Ignatius and the Princess II
1027
没理解到题目意思:
#include<bits/stdc.h>
using namespace std;
const int N1e42;
int main(){int n,m;int ans[N];while(scanf("%d%d",&n,&m)!EOF){if(m>n){for(int i1;i<n;i)printf("%d ",i);printf("%d\n&…
建站知识
2024/12/4 11:11:08