GPLT
weixin_51749460
这个作者很懒,什么都没留下…
展开
-
7-17 日期格式化 (5 分)
用一种非常懒的方式来做这个5分题 #include<iostream> #include<cstdio> using namespace std; int main() { char m1, m2, c1, d1, d2, c2, y1, y2, y3, y4; cin >> m1 >> m2 >> c1 >> d1 >> d2 >> c2 >> y1 >> y2 >原创 2021-04-14 08:22:49 · 183 阅读 · 0 评论 -
L1-1 PTA使我精神焕发 (5 分)
L1-1 PTA使我精神焕发 (5 分) 5分题,不解释,直接贴代码: #include<iostream> #include<cstdio> using namespace std; int main() { printf("PTA shi3 wo3 jing1 shen2 huan4 fa1 !\n"); return 0; }原创 2021-04-13 21:22:02 · 94 阅读 · 0 评论 -
7-6 新世界 (5 分)
因为我最初是从C开始写的代码,对C++并不熟悉……所以我用得比较多的还是C和C++的重合部分 #include<iostream> #include<cstdio> using namespace std; int main() { printf("Hello World\n"); printf("Hello New World\n"); return 0; } ...原创 2021-04-14 08:13:55 · 109 阅读 · 0 评论 -
7-4 A乘以B (5 分)
#include<iostream> #include<cstdio> using namespace std; int main() { int a, b, x; scanf("%d %d", &a, &b); x = a*b; printf("%d", x); return 0; }原创 2021-04-14 08:11:15 · 202 阅读 · 0 评论 -
L1-4 心理阴影面积 (5 分)
同样5分题,嫑想得太复杂…… #include<iostream> #include<cstdio> using namespace std; int main() { int x, y, s; scanf("%d %d", &x, &y); s = 0.5*100*100 - 0.5*100*(100-x) - 0.5*100*y; printf("%d", s); return 0; } ...原创 2021-04-14 08:07:21 · 152 阅读 · 0 评论