Search found 24 matches: 10176
Searched query: 10176
- Tue Nov 18, 2014 2:30 am
- Forum: Volume 101 (10100-10199)
- Topic: 10176 - Ocean Deep ! - Make it shallow !!
- Replies: 37
- Views: 17506
Re: 10176 - Ocean Deep ! - Make it shallow !!
At each step as you convert the binary string to a decimal value do a modulus 131071.
- Sun Nov 16, 2014 10:27 am
- Forum: Volume 101 (10100-10199)
- Topic: 10176 - Ocean Deep ! - Make it shallow !!
- Replies: 37
- Views: 17506
Re: 10176 - Ocean Deep ! - Make it shallow !!
Got Accepted
- Wed Jan 15, 2014 1:08 am
- Forum: Volume 101 (10100-10199)
- Topic: 10176 - Ocean Deep ! - Make it shallow !!
- Replies: 37
- Views: 17506
Re: 10176 - Ocean Deep! Make it shallow!!
It looks like you figured it out
- Sat Dec 21, 2013 8:15 pm
- Forum: Volume 101 (10100-10199)
- Topic: 10176 - Ocean Deep ! - Make it shallow !!
- Replies: 37
- Views: 17506
Re: 10176 - Ocean Deep! Make it shallow!!
i am getting WA ,,, but failed to find out what is the wrong!! :roll: #include<stdio.h> #include<string.h> #include<string> #include<algorithm> #include<iostream> using namespace std; int main() { char str[20000],temp[20000]; int i,j=0; while(scanf("%c",&str[0])==1) { j=0; int p=0; if(...
- Thu Jan 26, 2012 9:38 am
- Forum: Volume 101 (10100-10199)
- Topic: 10176 - Ocean Deep ! - Make it shallow !!
- Replies: 37
- Views: 17506
Re: 10176 - Ocean Deep! Make it shallow!!
I found my mistake !!
- Thu Jan 26, 2012 8:25 am
- Forum: Volume 101 (10100-10199)
- Topic: 10176 - Ocean Deep ! - Make it shallow !!
- Replies: 37
- Views: 17506
Re: 10176 - Ocean Deep! Make it shallow!!
Why this code generate WA ,could anybody give some test cases? #include<cstdio> #include<string> #include<iostream> #define mod 131071 using namespace std; void doit(string s){ int sol=0; for(int i=0;i<s.length();i++){ sol*=2; sol%=mod; sol=(sol+(int)(s[i]-'0'))%mod; } sol%=mod; if(sol==0)puts("...
- Thu Oct 08, 2009 10:01 am
- Forum: Volume 101 (10100-10199)
- Topic: 10176 - Ocean Deep ! - Make it shallow !!
- Replies: 37
- Views: 17506
Re: 10176 - Ocean Deep! Make it shallow!!
got acc after a long time,
input processing was wrong actually.
input processing was wrong actually.
- Sun May 17, 2009 1:26 am
- Forum: Volume 101 (10100-10199)
- Topic: 10176 - Ocean Deep ! - Make it shallow !!
- Replies: 37
- Views: 17506
Re: 10176 - Ocean Deep! Make it shallow!!
though i use long long it gives WA,is there any critical input,pls help me....thanks for ur eagerness to help, thanks a lot
- Sun May 17, 2009 12:30 am
- Forum: Volume 101 (10100-10199)
- Topic: 10176 - Ocean Deep ! - Make it shallow !!
- Replies: 37
- Views: 17506
Re: 10176 - Ocean Deep! Make it shallow!!
Use long long.
- Sun May 17, 2009 12:16 am
- Forum: Volume 107 (10700-10799)
- Topic: 10789 - Prime Frequency
- Replies: 38
- Views: 26331
Re: 10789 - Prime Frequency
thanks jan vai,i got accepted,bt another prob in 10176,pls help me on that prob,i m a beginner,Advanced thanks to u.
- Fri May 08, 2009 6:07 pm
- Forum: Volume 101 (10100-10199)
- Topic: 10176 - Ocean Deep ! - Make it shallow !!
- Replies: 37
- Views: 17506
Re: 10176 - Ocean Deep! Make it shallow!!
This is my code,can any one tell me the process of taking inputs in this prob,...advanced thank to the helpers...
Code: Select all
removed after acc..
- Sun Oct 05, 2008 8:02 am
- Forum: Volume 101 (10100-10199)
- Topic: 10176 - Ocean Deep ! - Make it shallow !!
- Replies: 37
- Views: 17506
Re: 10176 - Ocean Deep! Make it shallow!!
Even after reading the hints I still got stuck for long. Now that I understand the pattern, let me throw another hint out. Basically you want to break down the binary input into groups of 17 consecutive digits (because 131071 is 17 consecutive ones as someone pointed out) and do something with them....
- Fri Aug 15, 2008 11:27 am
- Forum: Volume 101 (10100-10199)
- Topic: 10176 - Ocean Deep ! - Make it shallow !!
- Replies: 37
- Views: 17506
Re: 10176 - Ocean Deep! Make it shallow!!
you can try to continuous input with continuous mod . it is good runtime take.
- Tue Apr 22, 2008 1:53 pm
- Forum: Volume 101 (10100-10199)
- Topic: 10176 - Ocean Deep ! - Make it shallow !!
- Replies: 37
- Views: 17506
Re: 10176 ocean deep(got AC now)
jan vi thanx,I got AC now...actually shortage of a space gives me wrong answer but I dont understand it.
- Mon Apr 21, 2008 5:53 am
- Forum: Volume 101 (10100-10199)
- Topic: 10176 - Ocean Deep ! - Make it shallow !!
- Replies: 37
- Views: 17506
Re: 10176 ocean deep
Why max is so high? The problem states that the number can have at most 10000 digits. Replace this part if(base[0]=='#')continue; if(base[0]=='0'||base[0]=='1')i=1; else i=0; with i=0; And use while(scanf(" %c",&base[0])==1)// There is a space before %c and it is important Hope these h...