牛逼啊！

# T1

#include <bits/stdc++.h>

using namespace std;

int main()
{
puts("0");
return 0;
}


# T2

0=w=0

#include <bits/stdc++.h>

using namespace std;

typedef long long LL;

LL n, m, arr[50005], sum[50005];

int main(int argc, char const* argv[])
{
scanf("%lld%lld", &n, &m);
for (int i = 1; i <= n; i += 1)
scanf("%lld", &arr[i]), sum[i] = sum[i - 1] + arr[i];
int opt, a, b, c;
for (int i = 1; i <= m; i += 1)
{
scanf("%d", &opt);
if (!opt)
scanf("%d%d%d", &a, &b, &c), printf("%lld\n", sum[b] - sum[a - 1]);
}
return 0;
}


# T3

Update：顺便再吐槽一下，这个位运算之间填数字谁 TM 看得出？？？出题人真逗比=。=

#include <bits/stdc++.h>

using namespace std;

int n;

string a, b;

int main()
{
cin >> n >> a >> b;
if (a[0] == 'A' && a[2] == 'A') puts("zyl");
else if (a[0] == '8' && a[1] == '1' && a[2] == '8') puts("zyl");
else if (a[0] == '1' && a[1] == 'A' && a[2] == '8' && a[3] == '8' && a[n - 1] != '8') puts("zyl");
else puts("lxl");
return 0;
}


# T4

int 强制转 short

#include <bits/stdc++.h>

using namespace std;

int a, b;

int main()
{
scanf("%d%d", &a, &b);
short a1 = a, b1 = b, c;
c = a1 + b1;
printf("%d\n", (int)c);
return 0;
}


# T5

（$ans[i]$表示第 $i$个询问的答案）

#include <bits/stdc++.h>

using namespace std;

int n, m, ans[105];

const string avl = "GardenOfAvalon";

string a, b, c;

void mark(int a)
{
for (int i = 0; i <= 4; i += 1) ans[a + i] += 1000;
}

int main(int argc, char const* argv[])
{
cin >> n >> m;
for (int i = 1; i <= n; i += 1)
{
cin >> a >> b >> c;
if (a == avl) mark(i);
else if (b == avl) mark(i);
else if (c == avl) mark(i);
}
for (int i = 1, x; i < m; i += 1)
{
cin >> x, cout << ans[x] << endl;
for (int i = 1; i <= 1e7; i += 1);
}
int x;
cin >> x, cout << ans[x] << endl;
return 0;
}


# T6

#include <bits/stdc++.h>

using namespace std;

int n;

double V1, V2, V3, p1, p2, p3, ms, m, r, x, y, z, v1, v2, v3, t;

int main()
{
cin >> n >> t;
for (int i = 1; i <= n; i += 1)
{
cin >> m >> r >> x >> y >> z >> v1 >> v2 >> v3;
p1 = (p1 * ms + x * m) / (m + ms);
p2 = (p2 * ms + y * m) / (m + ms);
p3 = (p3 * ms + z * m) / (m + ms);
V1 = (V1 * ms + v1 * m) / (m + ms);
V2 = (V2 * ms + v2 * m) / (m + ms);
V3 = (V3 * ms + v3 * m) / (m + ms), ms += m;
}
p1 += t * V1, p2 += t * V2, p3 += t * V3;
printf("%.8lf %.8lf %.8lf\n", p1, p2, p3);
return 0;
}


# T7

#include <bits/stdc++.h>

using namespace std;

char str[100] = "karlheinrichmarx";

int main()
{
int x;
cin >> x, x--;
if (x > 15) putchar(' ');
else putchar(str[x]);
return 0;
}


# T8

#include <bits/stdc++.h>

using namespace std;

int main()
{
puts("Happy April Fools!");
return 0;
}


# T9

#include <bits/stdc++.h>

using namespace std;

int x;

int main()
{
cin >> x;
cout << -23 * x + 99;
return 0;
}


### 2 条评论

Orz 一中巨佬
T3 打表同乐 2333

#### konnyakuxzy · 2018年4月8日 4:00 下午

Orz
巨个鬼
我要 HNOI 滚粗了 QvQ