跳到正文

休闲·娱乐

让人类心态爆炸

nian_le约 7 分钟
原文
文章信息与版本

文章信息

发布
2025年12月12日
收录
2025年12月12日
更新
2026年5月30日
篇幅
约 7 分钟
获赞
1

版本

  1. v1当前

事实上,我代码实力不高,但我确实可以写代码

“c++代码的抽风瞬间”

当然,明眼人都能看出来代码的意思

(花了3小时,中间一直查宏定义,并且不断“优化”代码)

C++
#include <algorithm>

#include <bitset>

#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 <utility>

#include <valarray>

#include <vector>

#include <cstring>

#define queue_FIFO queue

#define cstring_char_tool string

#define stack_LIFO stack

#define Input_invalid getline

#define Linear_input_stream cin

#define Better_efficient_sorting_opposite reverse

#define The_beginning_of_the_character begin

#define End_of_characters end

#define Main_hub main

#define The_beginning_of_everything_a_whole int

#define characters char

#define Debug_forwhile for

#define Data_lengthsize_long size

#define Forced_insertion push

#define Forced_acquisition top

#define Forced_deletion pop

#define Forced_to_pull_out front

#define Forced_to_pull_in back

#define End_return_value return

#define Zero_One_True bool

#define Special_judgment_if if

#define Special_judgment_else else

#define output_down cout

Zero_One_True True_and_False(std::cstring_char_tool string_hundred_number_true,std::cstring_char_tool string_hundred_number_false){
	
	Special_judgment_if(string_hundred_number_true==string_hundred_number_false){
		
		End_return_value true;
		
	}Special_judgment_else{
		
		End_return_value false;
		
	}
}

The_beginning_of_everything_a_whole Main_hub(){
	
	std::cstring_char_tool string_hundred_number,string_hundred_number_true="",string_hundred_number_false="";
	
	std::queue_FIFO<characters>queue_onnumber;
	
	std::stack_LIFO<characters>stack_prime;
	
	std::Input_invalid(std::Linear_input_stream,string_hundred_number);
	
	std::Better_efficient_sorting_opposite(string_hundred_number.The_beginning_of_the_character(),string_hundred_number.End_of_characters());
	
	Debug_forwhile(The_beginning_of_everything_a_whole Data=0;Data<string_hundred_number.Data_lengthsize_long();Data++){
		
		stack_prime.Forced_insertion(string_hundred_number[Data]);
	}
	
	std::Better_efficient_sorting_opposite(string_hundred_number.The_beginning_of_the_character(),string_hundred_number.End_of_characters());
		
	Debug_forwhile(The_beginning_of_everything_a_whole Data=0;Data<string_hundred_number.Data_lengthsize_long();Data++){
		
		queue_onnumber.Forced_insertion(string_hundred_number[Data]);
	}
		
	Debug_forwhile(The_beginning_of_everything_a_whole Data=0;Data<string_hundred_number.Data_lengthsize_long();Data++){
		
		string_hundred_number_true+=stack_prime.Forced_acquisition();
		
		stack_prime.Forced_deletion();
	}

	Debug_forwhile(The_beginning_of_everything_a_whole Data=0;Data<string_hundred_number.Data_lengthsize_long();Data++){
		
		string_hundred_number_false+=queue_onnumber.Forced_to_pull_out();
		
		queue_onnumber.Forced_deletion();
	}
	
	Special_judgment_if(True_and_False(string_hundred_number_true,string_hundred_number_false)==true){
		
		std::Better_efficient_sorting_opposite(string_hundred_number_true.The_beginning_of_the_character(),string_hundred_number_true.End_of_characters());
		
		std::output_down<<string_hundred_number_true;
		
	}Special_judgment_else{
		
		std::output_down<<"Unable to output";
	}
	
	End_return_value 0;
}

容易,很容易,代码逻辑很“症猖”。

你们可以猜猜看,它是用来干什么的?

(三位数反转并且不去空格?)

原文