I solved this problem just now,
and want to share some information to those who is trobled with this question.
First,you may not need to stored those num you count before.
When I stored, I got AC by 1.1 sec.
When I didn't, I got AC by 1.3 sec.
You can just try using those factors to build the ans ...
Search found 4 matches
- Thu Apr 17, 2008 7:01 am
- Forum: Volume 110 (11000-11099)
- Topic: 11099 - Next Same-Factored
- Replies: 24
- Views: 13160
- Fri Jul 27, 2007 2:02 pm
- Forum: Volume 112 (11200-11299)
- Topic: 11223 - O: dah dah dah!
- Replies: 43
- Views: 25721
- Thu Jul 26, 2007 6:23 am
- Forum: Volume 112 (11200-11299)
- Topic: 11223 - O: dah dah dah!
- Replies: 43
- Views: 25721
- Mon Nov 21, 2005 6:43 am
- Forum: Volume 7 (700-799)
- Topic: 793 - Network Connections
- Replies: 102
- Views: 47673
793 - TLE (C++)
Is there a better way to solve this question?
Thanks for your advise .
#include<iostream>
using namespace std;
///////////////////////////////////////////////////////////////////////////////
typedef struct _set
{
int v,t;
}PG;
PG s[1001];
void makeset(PG* s,int smax)
{
for(int i=1;i<=smax;i ...
Thanks for your advise .
#include<iostream>
using namespace std;
///////////////////////////////////////////////////////////////////////////////
typedef struct _set
{
int v,t;
}PG;
PG s[1001];
void makeset(PG* s,int smax)
{
for(int i=1;i<=smax;i ...