Search found 6 matches

by muktadir.rhmn
Tue Feb 17, 2015 12:20 pm
Forum: General
Topic: Why Presentation Error if %I64d is used as format specifier?
Replies: 3
Views: 8845

Why Presentation Error if %I64d is used as format specifier?

I'm using C to submit a problem. I get Presentation Error if I use "%I64d" as a format specifier to print a variable of type "long long" . just like below: long long a = 10; printf("%I64d", a); But I get AC if I use "%lld" instead of "%I64d". What is...
by muktadir.rhmn
Fri May 30, 2014 4:15 am
Forum: Volume 100 (10000-10099)
Topic: 10035 - Primary Arithmetic
Replies: 328
Views: 94208

Re: 10035 - Primary Arithmetic

thnx a lot . got AC
by muktadir.rhmn
Thu May 29, 2014 6:10 pm
Forum: Volume 100 (10000-10099)
Topic: 10035 - Primary Arithmetic
Replies: 328
Views: 94208

Re: 10035 - Primary Arithmetic

please help. why WA??? #include<stdio.h> #include<string.h> #include<stdlib.h> int main() { char num[2][11]; int carry, ans, sumOfDigits, bigNumI, smallNumI, bigNumDigits, smallNumDigits, tmp; scanf("%s %s", num[0], num[1]); while(!(atoi(num[1]) == 0 && atoi(num[0]) == 0)){ carry =...
by muktadir.rhmn
Sat May 10, 2014 7:28 am
Forum: Volume 4 (400-499)
Topic: 494 - Kindergarten Counting Game
Replies: 119
Views: 34749

Re: why WA in 494?!!

thnx
by muktadir.rhmn
Fri May 09, 2014 5:05 pm
Forum: Volume 4 (400-499)
Topic: 494 - Kindergarten Counting Game
Replies: 119
Views: 34749

Re: why WA in 494?!!

#include<stdio.h> int main() { char ch; int whitespace = 1, count = 0; while( ( ch = getchar() ) != EOF){ if(whitespace && ( ( 'a' <= ch && ch <='z') || ( 'A' <= ch && ch <='Z'))){ count++; whitespace = 0; } else if( ch == ' ' || ch =='\t' ){ whitespace = 1; } else if ( ch =...

Go to advanced search