A. 预言家
当我们写出了输出 之后发现只有一个测试点并且还是 WA。于是猜想题目中还有隐藏的信息。
复制 Markdown 之后丢进云剪贴板后发现要预言的人名叫 Nаi Shu Ruo 而不是 Nai Shu Ruo。由题目可知在整个奶龙大陆上只有 Nai Shu Ruo 才是预言家,因此答案为 。
#include<iostream>
main(){std::cout<<0;}B. AI 工具
题目提示头图有线索,发现头图指向了一个云剪贴板。如果你是 florr 玩家你应该可以发现这些所谓的物品都是 florr 里的花瓣,再根据样例可以知道答案就是它们的介绍。
但是这对不玩 florr 的人非常不利。我们发现题目中那个发明的人就是出题人,点开出题人的专栏列表。题目中出题人“发明了 AI 工具”提示我们去专栏的“科技·工程”区寻找答案,发现只有一篇名叫“Florr Kill游戏指南”的专栏。由此也能得知物品就是游戏 florr.io 中的花瓣。
在专栏中你可以找到十个物品中的四个然后拿到 分,剩下的 分你可以从 florr 维基中找到,也可以自己开一把来找。
#include<bits/stdc++.h>
using namespace std;
int main(){
string s;
getline(cin,s);
if (s == "Ankh"){
cout<<"An ancient relic. When destroyed, will teleport the flower back to where it was destroyed.";
return 0;
}
if (s == "Basic"){
cout<<"A nice petal, not too strong but not too weak.";
return 0;
}
if (s == "Mecha Missle"){
cout<<"Locked on.";
return 0;
}
if (s == "Dark Mark"){
cout<<"A dark mark that binds itself to a fallen soul.";
return 0;
}
if (s == "Peas"){
cout<<"It goes poof.";
return 0;
}
if (s == "Web"){
cout<<"It\'s really sticky.";
return 0;
}
if (s == "Talisman of Evasion"){
cout<<"A necklace that allows the wearer to anticipate enemy attacks.";
return 0;
}
if (s == "Battery"){
cout<<"Discharges electricity whenever the flower gets hit.";
return 0;
}
if (s == "Corruption"){
cout<<"Corrupts one\'s soul, turning them against their own kind.";
return 0;
}
if (s == "Lightning"){
cout<<"Strikes several nearby enemies.";
return 0;
}
return 0;
}C. Nai Shu Ruo 的数学作业
前 分非常好拿,显然输出 即可得到。
看到题目中的式子,令 为数组 的最大值,则根号之内的值一定大于等于 而又小于等于 。显然 一定小于 ,所以这个 对于答案没有影响。所以将其开根后最小值与最大值都是 ,所以直接输出 即为答案。
#include<iostream>
using namespace std;
int main(){
int n;
cin>>n;
long long amax = 0,x;
for (int i = 1;i <= n;i++){
cin>>x;
amax = max(amax,x);
}
cout<<amax;
return 0;
}