100 Unaccepted求调%%%
查看原帖
100 Unaccepted求调%%%
1345626
zhang_hao_yi楼主2024/12/28 22:19

Subtask #1 TLE

#include<bits/stdc++.h>

#define This_is_the_main_function main()
#define This_is_the_semicolon ;

#define This_is_the_32_bit_integer_data_type int
#define This_is_the_unsigned_32_bit_integer_data_type unsigned This_is_the_32_bit_integer_data_type
#define This_is_the_64_bit_integer_data_type long long
#define This_is_the_unsigned_64_bit_integer_data_type unsigned This_is_the_64_bit_integer_data_type

#define This_is_the_input cin
#define This_is_the_output cout

#define This_is_the_judgment if
#define This_is_the_otherwise else
#define This_is_the_otherwise_judgment This_is_the_otherwise This_is_the_judgment
#define This_is_the_cycle while

#define This_is_the_newline endl

using namespace std This_is_the_semicolon

This_is_the_32_bit_integer_data_type n This_is_the_semicolon

This_is_the_32_bit_integer_data_type This_is_the_main_function{
	
	This_is_the_input>>n This_is_the_semicolon
	
	This_is_the_cycle(n!=1){
		This_is_the_judgment(n%2==0){
			This_is_the_output<<n<<"/2="<<n/2<<This_is_the_newline This_is_the_semicolon
			n/=2 This_is_the_semicolon
		}This_is_the_otherwise{
			This_is_the_output<<n<<"*3+1="<<n*3+1<<This_is_the_newline This_is_the_semicolon
			n=n*3+1 This_is_the_semicolon
		}
	}
	
	This_is_the_output<<"End";
	
    return 0 This_is_the_semicolon
}

更适合中国(English)宝宝的代码 :D :D :D

2024/12/28 22:19
加载中...