- 补丁VS错误
- 2013-03-28 20:50:01 @
读入写的
cin>>m>>n;
for(a=1;a<=n;a++)cin>>s[a].s>>s[a].before>>s[a].after;
没开文件
4 条评论
-
mrw LV 10 MOD @ 2013-03-29 17:14:00
结构体开太大了,寻址时间太长吧。。
-
2013-03-29 16:15:16@
记录信息
评测状态 Time Limit Exceeded
题目 P1019 补丁VS错误
递交时间 2013-03-29 16:13:39
代码语言 C++
评测机 上海红茶馆
消耗时间 10150 ms
消耗内存 58996 KiB
评测时间 2013-03-29 16:13:53
评测结果
上海红茶馆 via libjudge
编译成功测试数据 #0: TimeLimitExceeded, time = 1015 ms, mem = 58716 KiB, score = 0
测试数据 #1: TimeLimitExceeded, time = 1015 ms, mem = 57484 KiB, score = 0
测试数据 #2: TimeLimitExceeded, time = 1015 ms, mem = 58256 KiB, score = 0
测试数据 #3: TimeLimitExceeded, time = 1015 ms, mem = 56744 KiB, score = 0
测试数据 #4: TimeLimitExceeded, time = 1015 ms, mem = 58904 KiB, score = 0
测试数据 #5: TimeLimitExceeded, time = 1015 ms, mem = 57280 KiB, score = 0
测试数据 #6: TimeLimitExceeded, time = 1015 ms, mem = 58996 KiB, score = 0
测试数据 #7: TimeLimitExceeded, time = 1015 ms, mem = 57540 KiB, score = 0
测试数据 #8: TimeLimitExceeded, time = 1015 ms, mem = 58344 KiB, score = 0
测试数据 #9: TimeLimitExceeded, time = 1015 ms, mem = 57840 KiB, score = 0
Summary: TimeLimitExceeded, time = 10150 ms, mem = 58996 KiB, score = 0
代码
#include<iostream>
using namespace std;
int m,n,a;
struct self{int s;string before,after;}s[1000001];
int main()
{
cin>>m>>n;
for(a=1;a<=n;a++)cin>>s[a].s>>s[a].before>>s[a].after;
return 0;
} -
2013-03-29 16:12:02@
超
-
2013-03-29 15:49:55@
你可以尝试一下仅提交读入部分看看是否超时?
- 1