震惊:AC代码加一个判断语句竟变成RE+UKE
查看原帖
震惊:AC代码加一个判断语句竟变成RE+UKE
256340
Miller2019楼主2020/5/17 17:39

RT

AC:

#include<stdio.h>
char str[35],k;int cnt[27],n,t;bool flag;
int main()
{
	scanf("%d\n",&n);
	while(n--)
	{
		fgets(str,32,stdin);
		cnt[str[0]-'a']++;
	}
	for(;t<26;t++)
	{
		if(cnt[t]>4)
		{
			putchar(t+'a');
			flag=1;
		}
	}
	if(!flag)
		puts("PREDAJA");
	return 0;
}

UKE+RE:

#include<stdio.h>
char str[35],k;int cnt[27],n,t;bool flag;
int main()
{
	scanf("%d\n",&n);
	if(n<5)
	{
	    puts("PREDAJA");
	    return 0;
	}
	while(n--)
	{
		fgets(str,32,stdin);
		cnt[str[0]-'a']++;
	}
	for(;t<26;t++)
	{
		if(cnt[t]>4)
		{
			putchar(t+'a');
			flag=1;
		}
	}
	if(!flag)
		puts("PREDAJA");
	return 0;
}

UKE:

Unknown Error. Judger internal error

Traceback (most recent call last):
File "/app/luogu-judger/source/tasks/Judge.py", line 148, in judge
execution_limits=limits)
File "/app/luogu-judger/source/judger/Judger.py", line 54, in judge
execution_result=execution_result)
File "/app/luogu-judger/source/checker/Checker.py", line 103, in check
stderr=f)
File "/app/luogu-judger/source/executor/LrunExecutor.py", line 54, in execute
timeout=limits.real_time / 1000 + 1 if limits.real_time is not None else None)
File "/usr/lib/python3.7/subprocess.py", line 325, in call
return p.wait(timeout=timeout)
File "/usr/lib/python3.7/subprocess.py", line 990, in wait
return self._wait(timeout=timeout)
File "/usr/lib/python3.7/subprocess.py", line 1616, in _wait
raise TimeoutExpired(self.args, timeout)
subprocess.TimeoutExpired: Command 'lrun --netns lrun-empty --isolate-process true --uid 6226 --gid 6226 --chroot /tmp/tmpxbs33jc3/mirror --chdir / --hostname sandbox.luogu --reset-env true --env HOME / --env TERM xterm --env PATH /sbin:/bin:/usr/sbin:/usr/bin --env LANG zh_CN.UTF-8 --max-cpu-time 1.000 --max-real-time 4.000 --max-memory 33554432 --max-nprocess 21 sh -c '/usr/bin/noip-checker /tmp/tmp4axtme6k/input /tmp/tmp4axtme6k/output /tmp/tmp4axtme6k/answer' 3>>/tmp/tmplxbuw7ql > >(ol 33554432 3>>/tmp/tmplxbuw7ql) 2> >(ol 33554432 3>>/tmp/tmplxbuw7ql 1>&2)' timed out after 5.0 seconds

这是什么情况?

顺便烤一下自己的咕。

2020/5/17 17:39
加载中...