Search found 6 matches

by arash
Fri Feb 27, 2015 3:31 pm
Forum: Volume 5 (500-599)
Topic: 514 - Rails
Replies: 79
Views: 24488

Re: 514 - Rails

brianfry713 wrote:In addition, there is one empty line after the lines corresponding to one block of the input file. There should also be a blank line after the last block.
oh my god !
everytime i made a silly mistake :) :D
thank you so so so much
by arash
Wed Feb 25, 2015 6:16 pm
Forum: Volume 5 (500-599)
Topic: 514 - Rails
Replies: 79
Views: 24488

Re: 514 - Rails

can someone say me where is my code is wrong that i get wa ??? :(

Code: Select all

Accepted!
Thanks
by arash
Wed Feb 25, 2015 5:51 pm
Forum: Volume 108 (10800-10899)
Topic: 10895 - Matrix Transpose
Replies: 17
Views: 5053

Re: 10895 - Matrix Transpose

brianfry713 wrote:Change line 48 to:
for (int j=0; j < v.size() && v[j].first.first==i; j++) {

yesssssss :D
thank you sooooooo much :wink:
by arash
Mon Feb 23, 2015 1:59 am
Forum: Volume 108 (10800-10899)
Topic: 10895 - Matrix Transpose
Replies: 17
Views: 5053

Re: 10895 - Matrix Transpose

brianfry713 wrote:You are given several sparse matrix, not just one.
i still get WA :( it's my new code
why It is not correct ????!!!!!
i can't believe that's wrong ...

Code: Select all

Accepted! Thanks
by arash
Fri Oct 31, 2014 8:56 pm
Forum: Volume 108 (10800-10899)
Topic: 10895 - Matrix Transpose
Replies: 17
Views: 5053

Re: 10895 - Matrix Transpose

can someone help me why my code is incorrect ??? #include <string> #include <algorithm> #include <cmath> #include <math.h> #include <vector> #include <iostream> #include <iomanip> #include <map> #include <stack> #include <queue> #include <stdio.h> using namespace std; int main () { int m,n; cin >> m...
by arash
Thu Feb 20, 2014 2:45 pm
Forum: Volume 1 (100-199)
Topic: 113 - Power of Cryptography
Replies: 162
Views: 15775

Re: 113 - Precision - Time limit exceeded

why I get wa by this code ?

Code: Select all

int main() {
    long double p,n;
    while (cin >> n >> p) {
        cout << round(powl(p, (1.0/n))) << endl;
    }
    return 0;
}

Go to advanced search