玄学RE求调
  • 板块灌水区
  • 楼主anke2017
  • 当前回复1
  • 已保存回复1
  • 发布时间2024/7/18 20:13
  • 上次更新2024/7/18 21:01:45
查看原帖
玄学RE求调
1076971
anke2017楼主2024/7/18 20:13
#include <bits/stdc++.h>
#include <conio.h>
using namespace std;
vector<string>trie[21];//trie
string p;
int main(){
	freopen("dictionary.txt","r",stdin);
	//int times=0;
	while(cin>>p)
	{
		//times++;
		trie[p.length()].push_back(p);
		//cout<<p.length()<<' ';
	}
	freopen("con","r",stdin);
	//other codes 
   return 0;
}

其中,"dictionary.txt"里有很多(总量约1MB)的,长度在1~20之间的英语单词,它们之间用一个空格隔开,但我测试是连首字母为A的单词都读不完(读了3800左右)就RE了,求调

验证码max6祭

2024/7/18 20:13
加载中...