Search found 2 matches

by wensi
Sun Nov 26, 2006 3:50 am
Forum: Volume 4 (400-499)
Topic: 406 - Prime Cuts
Replies: 187
Views: 60490

thx, did everything i can to improve the speed, and finally got AC, and it is solved in 3.9 seconds. in the question it says N<=1000, I still dont understand why would that take so long to finish...
by wensi
Sat Nov 25, 2006 5:52 pm
Forum: Volume 4 (400-499)
Topic: 406 - Prime Cuts
Replies: 187
Views: 60490

406 TLE Prime Cuts

I tried all the inputs from the forum and all worked, still getting tle, could anyone help?
also i tried to add braces around the if/else statements but didnt change.


#include <iostream>
#include <vector>
using namespace std;

bool prime(int n);

int main()
{
int i,n,c,temp;
vector<int> v ...

Go to advanced search