Search found 8 matches

by ioi
Tue Feb 05, 2013 5:53 pm
Forum: Volume 116 (11600-11699)
Topic: 11645 - Bits
Replies: 9
Views: 4146

11645 - Bits

#include<stdio.h> #include<string.h> #include<stdlib.h> typedef unsigned long long i64; typedef long long LLD; i64 dp[66][2][2]; i64 dp2[66][2]; char bit[66]; int len; i64 solve2(int pos,int has_small) { int up,i; i64 res; if(pos==len) return 1; if(dp2[pos][has_small]!=0) return dp2[pos][has_small]...
by ioi
Sun Dec 16, 2012 6:24 am
Forum: Volume 125 (12500-12599)
Topic: 12573 - Sohel Sir's Assignment
Replies: 7
Views: 496

Re: 12573 WA :'(

Thanks Brainfry Got AC :D
by ioi
Thu Dec 13, 2012 11:36 pm
Forum: Volume 125 (12500-12599)
Topic: 12573 - Sohel Sir's Assignment
Replies: 7
Views: 496

12573 WA :'(

#include<stdio.h> #include<math.h> #define prime(i) ((Prime[i>>5])&(1<<(i&(31)))) #define set(j) (Prime[j>>5]|=(1<<(j&(31)))) #define LIM 86100000 #define SLIM 9278 typedef unsigned long long i64; i64 Prime[1100000]; i64 pos[5010001],l; void sieve() { i64 i, j, m, n, t,x,k,h; set(1); pos[1]=2; pos[...
by ioi
Fri Nov 30, 2012 10:28 am
Forum: Volume 122 (12200-12299)
Topic: 12241 - Digits Count
Replies: 0
Views: 1036

12241 - Digits Count

How can i solve this problem??? please help....
by ioi
Mon Oct 29, 2012 2:54 pm
Forum: Volume 125 (12500-12599)
Topic: 12510 - Collecting Coins
Replies: 1
Views: 1115

12510 - Collecting Coins

#include<stdio.h> #include<string.h> #include<stdlib.h> #define MM 30 char matrix[MM][MM]; int vis[MM][MM]; int ret,row,col; int inx[4]={0,-1,0,1}; //right,up,left,down int iny[4]={1,0,-1,0}; void set() { memset(matrix,0,sizeof(matrix)); memset(vis,0,sizeof(vis)); } void dfs(int x,int y) { int i,j,...
by ioi
Wed Aug 08, 2012 8:18 am
Forum: Volume 119 (11900-11999)
Topic: 11956 - Brainfuck
Replies: 9
Views: 2642

Re: 11956 WA

Thanks a lot Brainfry713 :) Got AC :D
by ioi
Sat Aug 04, 2012 8:27 am
Forum: Volume 119 (11900-11999)
Topic: 11956 - Brainfuck
Replies: 9
Views: 2642

11956 - Brainfuck

Code: Select all

removed
by ioi
Sat May 05, 2012 10:51 pm
Forum: Volume 124 (12400-12499)
Topic: 12455 - Bars
Replies: 4
Views: 4132

12455 - Bars

pls help me out.. :( what's wrong with this one ???? I got WA :( #include<stdio.h> #include<stdlib.h> #include<string.h> #define MM 200008 int inp[25],track[MM]; int solve(int sum,int n,int val) { int i,j,k,l,inx; track[0]=1; for(i=1;i<=sum;i++) { track[i]=0; } for(i=0;i<n;i++) { for(j=sum;j>=0;j--)...

Go to advanced search