Search found 8 matches
- Wed May 04, 2016 11:35 pm
- Forum: Volume 106 (10600-10699)
- Topic: 10604 - Chemical Reaction
- Replies: 24
- Views: 19094
Re: 10604 - Chemical Reaction
My idea is say the tube has 1,2,2,3 so I will try out (1,2), suppose their combination produces 2, now I've two options, taking 2 (which I got from (1,2)) and combine it with either 2 or 3 (from the remaining tubes) or combining remaining tubes (2,3), get their combination and try out with 2 ...
- Thu May 28, 2015 10:44 am
- Forum: Volume 111 (11100-11199)
- Topic: 11159 - Factors and Multiples
- Replies: 19
- Views: 15576
Re: 11159 - Factors and Multiples
What is wrong with my code?
#include <stdio.h>
#include <map>
#include <cstring>
#include <vector>
using namespace std;
int t,l,r;
map<int, vector<int> > graph;
int left[110], right[110], setA[110], setB[110];
bool flag[110];
bool matching(int u){
for(int i = 0; i<graph[u].size(); i++){
int v ...
#include <stdio.h>
#include <map>
#include <cstring>
#include <vector>
using namespace std;
int t,l,r;
map<int, vector<int> > graph;
int left[110], right[110], setA[110], setB[110];
bool flag[110];
bool matching(int u){
for(int i = 0; i<graph[u].size(); i++){
int v ...
- Sun May 24, 2015 3:59 pm
- Forum: Volume 101 (10100-10199)
- Topic: 10139 - Factovisors
- Replies: 80
- Views: 42124
Re: 10139 - Factovisors
Can anyone please help me out to find out why am I getting wrong answer with this code?
#include <stdio.h>
#include <map>
#include <iterator>
using namespace std;
int main() {
long long n,m,temp;
while(scanf("%llu %llu", &n, &m) == 2){
temp = m;
map<long long,int> div;
for(long long i = 2; i ...
#include <stdio.h>
#include <map>
#include <iterator>
using namespace std;
int main() {
long long n,m,temp;
while(scanf("%llu %llu", &n, &m) == 2){
temp = m;
map<long long,int> div;
for(long long i = 2; i ...
- Sun Apr 19, 2015 8:05 pm
- Forum: Volume 7 (700-799)
- Topic: 755 - 487--3279
- Replies: 115
- Views: 47499
Re: 755 - 487--3279
I'm getting TLE with this code. Can anyone please help me out?
https://ideone.com/d0Y2Xr
https://ideone.com/d0Y2Xr
- Sat Jan 17, 2015 11:18 am
- Forum: Volume 106 (10600-10699)
- Topic: 10699 - Count the factors
- Replies: 27
- Views: 16551
Re: 10699 - Count the factors
Got AC. Thank you. 

- Thu Jan 15, 2015 6:53 am
- Forum: Volume 106 (10600-10699)
- Topic: 10699 - Count the factors
- Replies: 27
- Views: 16551
Re: 10699 - Count the factors
I'm getting wrong answer with this code. Can anyone please help me out?
Code: Select all
deleted the code as got AC
- Fri Jan 09, 2015 1:42 am
- Forum: Volume 106 (10600-10699)
- Topic: 10685 - Nature
- Replies: 41
- Views: 25143
Re: 10685 - Nature
Got AC. Thanks a ton 

- Thu Dec 25, 2014 4:58 pm
- Forum: Volume 106 (10600-10699)
- Topic: 10685 - Nature
- Replies: 41
- Views: 25143
Re: 10685 - Nature
I've been getting WA with this code. I'm not really understanding where the bug lies. Can anyone please help me out?
[deleted the code as I got AC]
[deleted the code as I got AC]