## Search found 7 matches

Sun Aug 17, 2014 6:11 pm
Forum: Volume 117 (11700-11799)
Topic: 11768 - Lattice Point or Not
Replies: 2
Views: 360

### Re: 11768 Lattice Point or Not

#include <cstdio> #include <cstdlib> #include <cmath> #include <cstring> #include <string> #include <queue> #include <vector> #include<set> #include <iostream> #include <algorithm> using namespace std; #define RD(x) scanf("%d",&x) typedef long long LL; int gcd(int a,int b) { if (b==0) return a; ret...
Sun Aug 17, 2014 6:10 pm
Forum: Volume 117 (11700-11799)
Topic: 11768 - Lattice Point or Not
Replies: 2
Views: 360

### 11768 - Lattice Point or Not

quite a simple question but i still get WA,why?help me out.. :oops: #include <cstdio> #include <cstdlib> #include <cmath> #include <cstring> #include <string> #include <queue> #include <vector> #include<set> #include <iostream> #include <algorithm> using namespace std; #define RD(x) scanf("%d",&x) t...
Wed Jul 23, 2014 1:40 pm
Forum: Volume 16 (1600-1699)
Topic: 1622 - Robot
Replies: 3
Views: 908

### Re: 1622 - Robot

Already AC!Thanks for random test cases~~ In this and many problems I solved it by writing a random test case generator for small input values (<= 10), then a brute force solution using backtracking that would TLE for large input values, and then work on getting correct code that will run in the tim...
Mon Jul 21, 2014 8:05 pm
Forum: Volume 16 (1600-1699)
Topic: 1622 - Robot
Replies: 3
Views: 908

### Re: 1622 - Robot

still WA...could you give me some logic thoughts?
Mon Jul 21, 2014 11:23 am
Forum: Volume 16 (1600-1699)
Topic: 1614 - Hell on the Markets
Replies: 1
Views: 398

### Re: 1614-Hell on the Markets

got AC...
just change to long long type..
Mon Jul 21, 2014 11:22 am
Forum: Volume 16 (1600-1699)
Topic: 1618 - Weak Key
Replies: 0
Views: 301

### 1618 - Weak Key

always WA...
can anyone give me some thoughts?
Mon Jul 21, 2014 10:43 am
Forum: Volume 16 (1600-1699)
Topic: 1614 - Hell on the Markets
Replies: 1
Views: 398

### 1614 - Hell on the Markets

#include <cstdio> #include <cstdlib> #include <cmath> #include <cstring> #include <string> #include <queue> #include <vector> #include <iostream> #include <algorithm> using namespace std; #define RD(x) scanf("%d",&x) #define RD2(x,y) scanf("%d%d",&x,&y) #define clr0(x) memset(x,0,sizeof(x)) #define...