跳到正文

学习·文化课

浸湿后人

Aether_约 1 分钟
原文
文章信息与版本

文章信息

发布
2026年7月29日
收录
2026年8月14日
更新
2026年11月22日
篇幅
约 1 分钟

版本

  1. v1当前

B3741 [语言月赛202304] 排名

这题也太奇怪了,我的代码1,2,4测试点都对,就3不对

求解

这里是我的代码

C++
#include"bits/stdc++.h"
#include"cstdio"
using namespace std;
struct Edge{
	int d;
	int e;
};
Edge G;
Edge F;
void out_1(){
	printf("\"\\n\"");
}
void out_2(){
	printf("\"\\t\"");
}
void R(int a,int b,int c,int d){
	if(a>b)
	{
		out_1();
		return ;
	}
	else if(a=b)
	{
		if(c>b)
		{
			out_2();
			return ;
		}
		else
		{
			out_1();
			return ;
		}
	}
	else
	{
		out_2();
		return ;
	}
}
int main()
{
	std::cin>>G.d>>G.e>>F.d>>F.e;
	R(G.d,F.d,G.e,F.e);
	return 0;
}

求大家帮我分析一下

原文
存档评论2 条抓取于