公司征集一段代码印制在 T 恤上,过来取经了, 送键盘

2021-03-19 11:15:20 +08:00
 Umenezumi

要求:

中了抽 1 楼,送出 cherry 机械键盘一把(公司的奖品)

我司是一家游戏公司,slogan:Make The World Happy !

16670 次点击
所在节点    问与答
263 条回复
Myprincess
2021-03-19 16:53:31 +08:00
Make code great again!
youmoo
2021-03-19 16:57:41 +08:00
看到想打人的那种:

1. delete from user where true;
2. return success==true ? true : false;
vate32
2021-03-19 17:02:20 +08:00
简单点:
public class HelloWorld {
public static void main(String[] args) {
System.out.println("HelloWorld");
}
}
popozhu
2021-03-19 17:02:21 +08:00
s/Wor[k,ld]/Happy/ig
evam
2021-03-19 17:03:01 +08:00
404 not found
AsunaQAQ
2021-03-19 17:03:56 +08:00
No Game No Life
HeapOverflow
2021-03-19 17:07:01 +08:00
while(true){
work();
}

return code ?? "¯\_(ツ)_/¯";
ila
2021-03-19 17:12:31 +08:00
var girlfriend GirlFriend
xshanow
2021-03-19 17:13:17 +08:00
Ctrl C Ctrl V
RRRoger
2021-03-19 17:13:46 +08:00
Life is short, Just use python3.
davin
2021-03-19 17:15:01 +08:00
正面 Game start,背面 Game over
Chikaku
2021-03-19 17:18:05 +08:00
正面,es6 代码:

export { Game as happy } from '公司名'
islxyqwe
2021-03-19 17:20:03 +08:00
f=>(x=>f(v=>x(x)(v)))(x=>f(v=>x(x)(v)))
wasd6267016
2021-03-19 17:21:16 +08:00
if(input == "↑↑↓↓←→←→BABA"){
life += 30;
}
nVoxel
2021-03-19 17:21:26 +08:00
0x5f3759df

这串一般一搜就能了解到程序,游戏还有数学的有趣
fmumu
2021-03-19 17:21:48 +08:00
//todo
MonTubasa
2021-03-19 17:22:54 +08:00
@freenull 厉害了,在 docker 里面运行把宿主机给卡死了
Chikaku
2021-03-19 17:23:59 +08:00
反面就用有名的平方根倒数算法吧:

float Q_rsqrt( float number ) {
long i;
float x2, y;
const float threehalfs = 1.5F;

x2 = number * 0.5F;
y = number;
i = * ( long * ) &y;
i = 0x5f3759df - ( i >> 1 );
y = * ( float * ) &i;
y = y * ( threehalfs - ( x2 * y * y ) );
return y;
}
xiaojinyan
2021-03-19 17:25:41 +08:00
int main()
{
return 0;
}
dapp98230
2021-03-19 17:27:21 +08:00
坏蛋 什么时候把梅露可还回来!

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://www.v2ex.com/t/763130

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX