## Search found 66 matches

Mon Mar 11, 2013 10:22 pm
Forum: Volume 7 (700-799)
Topic: 748 - Exponentiation
Replies: 26
Views: 8457

### Re: 748 - Exponentiation

WA import java.util.Scanner; import java.math.BigInteger; import java.math.BigDecimal; class Main { public static void main(String args[]) { Scanner s = new Scanner (System.in); BigDecimal R = new BigDecimal("0"); int n; while(s.hasNext()) { R = s.nextBigDecimal(); n = s.nextInt(); R = R.pow(n); R =...
Fri Mar 08, 2013 9:08 pm
Forum: Volume 125 (12500-12599)
Topic: 12596 - Recursive Texting
Replies: 4
Views: 1512

### Re: RE - 12596

Thanks brianfry713. Trying ....
Thu Mar 07, 2013 10:00 am
Forum: Volume 125 (12500-12599)
Topic: 12596 - Recursive Texting
Replies: 4
Views: 1512

### Re: RE - 12596

Thanks for reply brianfry713, but After update my CODE got again RE .. here is my update code #include <stdio.h> #include <stdlib.h> #include <string.h> #include <math.h> #include <ctype.h> #include <iostream> #include <string> #include <sstream> #include <stack> #include <queue> #include <vector> #...
Wed Mar 06, 2013 11:27 pm
Forum: Volume 125 (12500-12599)
Topic: 12596 - Recursive Texting
Replies: 4
Views: 1512

### 12596 - Recursive Texting

Why got RE i don't understand , I am not very good in DP . Please help anyone .... #include <stdio.h> #include <stdlib.h> #include <string.h> #include <math.h> #include <ctype.h> #include <iostream> #include <string> #include <sstream> #include <stack> #include <queue> #include <vector> #include <li...
Fri Feb 22, 2013 11:55 am
Forum: Volume 118 (11800-11899)
Topic: 11827 - Maximum GCD
Replies: 22
Views: 3925

### Re: 11827 Why WA?

Code: Select all

``````AC ...
``````
Thu Feb 21, 2013 12:21 pm
Forum: Volume 104 (10400-10499)
Topic: 10473 - Simple Base Conversion
Replies: 46
Views: 13502

### Re: 10473 - Simple Base Conversion Question

Try this I/O :::
Input ::

Code: Select all

``````0x56F4FE05A
-1
``````
Output ::

Code: Select all

``````23342342234
``````
But your program's output is 23342284890 which is wrong.

Sorry for my poor English.
Mon Feb 18, 2013 8:31 pm
Forum: Volume 114 (11400-11499)
Topic: 11455 - Behold my quadrangle
Replies: 21
Views: 11123

### Re: 11455 - Behold My Quadrangle

use unsigned long long int
Mon Feb 18, 2013 7:16 pm
Forum: Volume 101 (10100-10199)
Topic: 10195 - The Knights Of The Round Table
Replies: 59
Views: 15871

### Re: 10195 - The Knights Of The Round Table

I am new in java... why my java code got WA .... Code :: import java.util.Scanner; import java.math.BigInteger; public class Main { public static void main(String args[]) { Scanner s = new Scanner(System.in); double a, b, c, r; int sk; while(s.hasNext()) { a = s.nextDouble(); b = s.nextDouble(); c =...
Sun Feb 17, 2013 6:23 pm
Forum: Volume 105 (10500-10599)
Topic: 10533 - Digit Primes
Replies: 108
Views: 31901

Need help.. Got TLE again and again but why ??? #include<stdio.h> #include<stdlib.h> #include<string.h> #include<math.h> #include<ctype.h> #include<stack> #include<queue> #include<vector> #include<algorithm> #include<string> using namespace std; #define sf scanf #define pf printf #define LLU unsigne...
Sun Feb 17, 2013 10:20 am
Forum: Volume 7 (700-799)
Topic: 727 - Equation
Replies: 156
Views: 35005

### Re: 727 - Equation (Runtime Error)

Lastly I got AC
Sat Feb 16, 2013 4:41 pm
Forum: Volume 7 (700-799)
Topic: 727 - Equation
Replies: 156
Views: 35005

### Re: 727 - Equation (Runtime Error)

ibv & brianfry thanks a lot for reply. but i didn't point out my bug... :( Again and again RE ... Please help this is my update code:: #include<stdio.h> #include<stdlib.h> #include<string.h> #include<math.h> #include<ctype.h> #include<stack> #include<queue> #include<vector> #include<algorithm> #inc...
Thu Feb 14, 2013 9:59 pm
Forum: Volume 7 (700-799)
Topic: 727 - Equation
Replies: 156
Views: 35005

### Re: 727 - Equation (Runtime Error)

Please help >> I got RE again and again ..... #include<stdio.h> #include<stdlib.h> #include<string.h> #include<math.h> #include<ctype.h> #include<stack> #include<queue> #include<vector> #include<algorithm> #include<string> using namespace std; #define sf scanf #define pf printf #define LLU unsigned ...
Mon Feb 11, 2013 9:07 pm
Forum: Volume 101 (10100-10199)
Topic: 10130 - SuperSale
Replies: 76
Views: 22630

### Re: 10130 - SuperSales

For hover1178
maximum item is 1 <= N <= 1000... Now see that int p[105],w[105];...Hope that its help you .
Mon Jan 28, 2013 4:41 pm
Forum: Volume 100 (10000-10099)
Topic: 10066 - The Twin Towers
Replies: 35
Views: 13186

### Re: 10066 - The Twin Towers

@kier.guevara try this I/O 100 100 1 2 3 4 5 6 5 4 8 5 4 5 4 5 8 6 5 4 8 4 5 6 8 5 1 2 3 1 5 1 4 5 6 5 8 5 2 1 4 5 5 6 4 5 6 5 8 5 4 5 1 2 3 4 5 6 5 4 8 5 4 5 4 5 8 6 5 4 8 4 5 6 8 5 1 2 3 1 5 1 4 5 6 5 8 5 2 1 4 5 5 6 4 5 6 5 8 5 4 5 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1...
Thu Dec 20, 2012 4:11 pm
Forum: Volume 109 (10900-10999)
Topic: 10925 - Krakovia
Replies: 50
Views: 21639

### Re: 10925 - Krakovia

For bindas Try it 100 2 999999999999999999 999999999999999999 999999999999999999 999999999999999999 999999999999999999 999999999999999999 999999999999999999 999999999999999999 999999999999999999 999999999999999999 999999999999999999 999999999999999999 999999999999999999 999999999999999999 9999999999...