本题为 LGPH #1 的第 5 道中题。
本题存在一个标题:语言学竞赛。
不同的大陆上,人们说着不同的语言……
#include<iostream>
int main()
{
std::cout << char(115) << std::endl;
return 0;
}let cnt=0;
let cap=10000;
for(let a=1;a<=cap;a++)
for(let b=1;b<=cap;b++)
for(let c=1;c<=cap;c++)
for(let d=1;d<=cap;d++)
if(a+b==c*d&&a*b==c+d)
cnt++;
console.log(String.fromCharCode('a'.charCodeAt()+cnt+Math.floor(Math.sqrt(cnt))));def KnuthArrow(a,n,b):
if n==1:
return a**b
if b==0:
return 1
return KnuthArrow(a,n-1,KnuthArrow(a,n,b-1))
def G(n):
if n==1:
return KnuthArrow(3,4,3)
return KnuthArrow(3,G(n-1),3)
GrahamsNumber=G(64)
result=GrahamsNumber%327129490174100
index=result%26
print(chr(ord('a')+index))import Data.Char (ord,chr)
getStr st = (show st) ++ (getStr (st+1))
findPos str1 str2 = if (take (length str1) str2) == str1 then 0 else (1+(findPos str1 (tail str2)))
findNumber n = findPos (show n) (getStr 1)
main = do
print(chr (fromInteger((toInteger(ord 'a'))+((findNumber 238943289532235) `mod` 26))))+
[>++<-]>
[<++>-]<
[>+++<-]>[<++>-]<
[>++<-]>[<++>-]<
+.+
[>++<-]>
[<++>-]<
[>+++<-]>[<++>-]<
[>++<-]>[<++>-]<
+.注曰「「文言編程與西文之字母難以並用,故所曰僅為其數值編碼,以其最首字母为一。」」
注曰「「下「斐氏列」之術者,是為其示例程式之一。」」
有數九億九千八百二十四萬四千三百五十三。名之曰「模」。
吾有一術。名之曰「斐氏列」。欲行是術。必先得一數。曰「甲」。乃行是術曰。
若「甲」等於零者。乃得零也。
若「甲」等於一者。乃得一也。
減「甲」以一。減「甲」以二。名之曰「乙」。曰「丙」。
施「斐氏列」於「乙」。名之曰「丁」。
施「斐氏列」於「丙」。名之曰「戊」。
加「丁」以「戊」。名之曰「己」。
除「己」以「模」。所餘幾何。名之曰「庚」。
乃得「庚」。
是謂「斐氏列」之術也。
施「斐氏列」於二百八十三兆七千三百七十二億五千零六十九萬一千四百一十。名之曰「余数」。
除「余数」以二十六。所餘幾何。書之。LGPH special cake.
Ingredients.
80 g participants
4 g problem setter
20 g problems
8 g middle problems
3 g meta problems
Cooking time: 156 hours.
Pre-heat oven to 514 degrees Celsius.
Method.
Put participants into the mixing bowl.
Add problem setter to the mixing bowl.
Add problems to the mixing bowl.
Add middle problems to the mixing bowl.
Add meta problems to the mixing bowl.
Liquefy contents of the mixing bowl.
Pour contents of the mixing bowl into the baking dish.
Serves 1.提示:
- (5 提示点/题)这个小题用的是什么语言?
- (10 提示点/题,必须购买对应小题的上一个提示)这个小题的答案是什么?
- (25 提示点)为什么看起来答案不是一个词?
- (120 提示点,你在本题已经花费的其他提示点可以用于抵扣)请直接告诉我答案。