Search found 33 matches

by Shihab
Sun Nov 23, 2014 7:24 pm
Forum: Volume 11 (1100-1199)
Topic: 1152 - 4 Values whose Sum is 0
Replies: 1
Views: 995

Re: 1152 - 4 Values whose Sum is 0

help tle #include <cmath> #include <climits> #include <queue> #include <vector> #include <map> #include <cstdlib> #include <fstream> #include <iomanip> #include <iostream> #include <sstream> // istringstream buffer(myString); #include <stack> #include <algorithm> #include <cstring> #include <cassert...
by Shihab
Sun Oct 26, 2014 9:09 pm
Forum: Volume 109 (10900-10999)
Topic: 10905 - Children's Game
Replies: 66
Views: 25399

Re: 10905 - Children's Game

Ac
by Shihab
Wed Oct 08, 2014 10:24 am
Forum: Volume 100 (10000-10099)
Topic: 10004 - Bicoloring
Replies: 93
Views: 28891

Re: 10004 - Bicoloring

4
3
1 2
1 3
2 3
how this is bicolorable? pls explain
by Shihab
Wed Oct 08, 2014 9:20 am
Forum: Volume 100 (10000-10099)
Topic: 10004 - Bicoloring
Replies: 93
Views: 28891

Re: 10004 - Bicoloring

wa help /*------------------------------------------------*/ //Uva Problem No: //Problem Name : //Type : //Author : shihab //University : DIU /*------------------------------------------------*/ #include<map> #include<cstdio> #include<cmath> #include<queue> #include<vector> #include<cstring> #includ...
by Shihab
Mon Sep 29, 2014 8:28 pm
Forum: Volume 3 (300-399)
Topic: 336 - A Node Too Far
Replies: 121
Views: 39284

Re: 336 - A Node Too Far

help rte #include<map> #include<cstdio> #include<cmath> #include<queue> #include<vector> #include<cstring> #include<sstream> #include<iostream> #include<algorithm> #define max 1 using namespace std; //printf("%llu\n",~1+1); //FILE *op = fopen("Input.txt","r"); //op=fopen("Output.txt","w"); //map<lon...
by Shihab
Sun Aug 31, 2014 9:47 pm
Forum: Volume 126 (12600-12699)
Topic: 12626 - I ❤ Pizza
Replies: 6
Views: 2262

Re: 12626 - I ❤ Pizza

1
AAARRM

IT helped me.MIght help someone else
by Shihab
Sun Aug 31, 2014 8:51 pm
Forum: Volume 4 (400-499)
Topic: 458 - The Decoder
Replies: 71
Views: 14682

Re: 458 - The Decoder

did u print a newline?
by Shihab
Fri Jun 13, 2014 8:45 am
Forum: Volume 113 (11300-11399)
Topic: 11344 - The Huge One
Replies: 16
Views: 6144

Re: 11344 - The Huge One

help WA #include<cstdio> #include<cstring> using namespace std; int T,i,t,sets,div[13],sum,last_digit,j,even_sum,odd_sum; char number[2001]; int d[6] = {1,3,2,6,4,5}; bool func( int last_digit , int sum) { int last_2_digits = 0,flag=0,temp,temp1,k; i=1; while( i<= sets ) { if( div[ i ] == 2) { if( n...
by Shihab
Fri Apr 04, 2014 5:30 pm
Forum: Volume 3 (300-399)
Topic: 389 - Basically Speaking
Replies: 94
Views: 22214

Re: 389

Thanks Bryanfry713 , AC
by Shihab
Wed Apr 02, 2014 11:23 am
Forum: Volume 3 (300-399)
Topic: 389 - Basically Speaking
Replies: 94
Views: 22214

Re: 389

Still WA #include<cstdio> #include<cstring> #include<iostream> using namespace std; long long power(int base,long long p) { long long i=0,result=1; for(; i<p; i++) { result*=base; } return result; } int char_to_int(char c) { return c-55; } int f1(int n) { return 55+n; } void f(long long number,int b...
by Shihab
Tue Apr 01, 2014 7:27 pm
Forum: Volume 3 (300-399)
Topic: 389 - Basically Speaking
Replies: 94
Views: 22214

Re: 389

WA , help #include<cstdio> #include<cstring> #include<iostream> using namespace std; long long power(int base,long long p) { long long i=0,result=1; for(; i<p; i++) { result*=base; } return result; } int char_to_int(char c) { return c-55; } int f1(int n) { return 55+n; } void f(long long number,int ...
by Shihab
Mon Mar 31, 2014 11:26 pm
Forum: Volume 3 (300-399)
Topic: 355 - The Bases Are Loaded
Replies: 74
Views: 22561

Re: 355 WA

AC
by Shihab
Mon Feb 17, 2014 7:24 pm
Forum: Volume 4 (400-499)
Topic: 490 - Rotating Sentences
Replies: 212
Views: 19490

Re: 490 - Rotating Sentence

PE ! #include<stdio.h> #include<string.h> int main() { int i=0,j,temp,max_len=0; char string[101][101]; while(gets(string[i])) { if(strlen(string[i])>max_len) max_len=strlen(string[i]); i++; } temp=i; j=0; while(j<max_len) { i=temp; while(i>=0) { if(j>=strlen(string[i])) printf(" "); else printf("%c...
by Shihab
Sun Jan 19, 2014 11:58 am
Forum: Volume 1 (100-199)
Topic: 136 - Ugly Numbers
Replies: 156
Views: 17682

Re: 136 Ugly number

AC
by Shihab
Sun Jan 19, 2014 11:57 am
Forum: Volume 4 (400-499)
Topic: 458 - The Decoder
Replies: 71
Views: 14682

Re: why WA for 458

AC

Go to advanced search