Search found 142 matches
- Tue Oct 15, 2019 8:53 am
- Forum: Volume 105 (10500-10599)
- Topic: 10507 - Waking up brain
- Replies: 24
- Views: 28183
Re: 10507 - Waking up brain
Deleted after getting Accepted.
- Mon Jul 15, 2019 7:29 am
- Forum: Volume 101 (10100-10199)
- Topic: 10131 - Is Bigger Smarter?
- Replies: 93
- Views: 88803
Re: 10131 - Is Bigger Smarter?
Code: Select all
deleted, Got AC
- Wed Jun 12, 2019 1:27 pm
- Forum: Volume 101 (10100-10199)
- Topic: 10104 - Euclid Problem
- Replies: 29
- Views: 15581
Re: 10104 - Euclid Problem
Got AC
- Mon Mar 07, 2016 7:34 am
- Forum: FAQ
- Topic: Can anyone change my username?
- Replies: 0
- Views: 13289
Can anyone change my username?
Can anyone change my username in this board? Please change the username from "lnr" to "cola".
- Mon Mar 07, 2016 7:27 am
- Forum: General
- Topic: Can anyone change my username?
- Replies: 0
- Views: 7760
Can anyone change my username?
Can anyone change my username? Please change the username from "lnr" to "cola".
- Sat Apr 12, 2014 5:04 am
- Forum: Volume 118 (11800-11899)
- Topic: 11834 - Elevator
- Replies: 11
- Views: 6038
Re: 11834 - Elevator
I am still not understanding the case of 45 degree. Can you please explain more with picture/figure/photo ? And where i am doing the mistake in code?brianfry713 wrote:http://apps.topcoder.com/forums/?module ... 66&start=0
Try solving it without using floating point.
- Fri Apr 11, 2014 5:26 am
- Forum: Volume 118 (11800-11899)
- Topic: 11834 - Elevator
- Replies: 11
- Views: 6038
Re: 11834 - Elevator
I have read that thread and re-read the problem, but could not understand it. Can you please explain more about the cases of the problem, specially the diagonal case with picutre?brianfry713 wrote:Doesn't match the sample I/O.
See: http://acm.uva.es/board/viewtopic.php?t=50729
Try using double instead of float.
- Thu Apr 10, 2014 4:53 am
- Forum: Volume 118 (11800-11899)
- Topic: 11834 - Elevator
- Replies: 11
- Views: 6038
11834 - Elevator
#include <cstdlib>
#include <cstdio>
#include <cmath>
#include <iostream>
using namespace std;
int main(int argc, char** argv) {
//freopen("in.txt","r",stdin);
int L,C,R1,R2,sum_of_radi,min;
double angle_line;
while(scanf("%d %d %d %d",&L,&C,&R1,&R2)) {
if(L+C+R1+R2==0)
break;
sum_of_radi ...
#include <cstdio>
#include <cmath>
#include <iostream>
using namespace std;
int main(int argc, char** argv) {
//freopen("in.txt","r",stdin);
int L,C,R1,R2,sum_of_radi,min;
double angle_line;
while(scanf("%d %d %d %d",&L,&C,&R1,&R2)) {
if(L+C+R1+R2==0)
break;
sum_of_radi ...
- Mon Apr 15, 2013 12:12 am
- Forum: General
- Topic: How can i get the source code I have solved?
- Replies: 4
- Views: 11430
How can i get the source code I have solved?
Hi,
How can i get the source code I have solved and submitted there http://uva.onlinejudge.org/?
Suppose i have deleted the source code from hard disk, now i need to see the source code of that problem and review it.
How can i retrieve the source code from http://uva.onlinejudge.org/ ?
Thanks.
How can i get the source code I have solved and submitted there http://uva.onlinejudge.org/?
Suppose i have deleted the source code from hard disk, now i need to see the source code of that problem and review it.
How can i retrieve the source code from http://uva.onlinejudge.org/ ?
Thanks.
- Fri Sep 28, 2012 9:59 am
- Forum: Volume 109 (10900-10999)
- Topic: 10936 - Land surveyor's job
- Replies: 10
- Views: 7350
Re: 10936 - Land surveyor's job
What's wrong with this code?
#include<cstdio>
#include<cmath>
#include<cctype>
#include<cstring>
struct point
{
double angle,distance;
};
int main()
{
int n,i,j,L;
char s[15];
double pi=2*acos(0.0),degree,minute,second,angle,x1,y1,x2,y2,xt,yt,total;
point A[1000];
for(;;)
{
scanf ...
#include<cstdio>
#include<cmath>
#include<cctype>
#include<cstring>
struct point
{
double angle,distance;
};
int main()
{
int n,i,j,L;
char s[15];
double pi=2*acos(0.0),degree,minute,second,angle,x1,y1,x2,y2,xt,yt,total;
point A[1000];
for(;;)
{
scanf ...
- Fri Apr 06, 2012 6:02 pm
- Forum: Algorithms
- Topic: Can anyone explain maximum subarray 2D with example?
- Replies: 1
- Views: 4809
Can anyone explain maximum subarray 2D with example?
Hi,
Can anyone describe/elaborate the maximum subarray 2D algorithm with example?
Here is a sample input output of a problem ( http://uva.onlinejudge.org/external/108/10827.html )
Input:
2
5
1 -1 0 0 -4
2 3 -2 -3 2
4 1 -1 5 0
3 -2 1 -3 2
-3 2 4 1 -4
3
1 2 3
4 5 6
7 8 9
Output:
15
45
I ...
Can anyone describe/elaborate the maximum subarray 2D algorithm with example?
Here is a sample input output of a problem ( http://uva.onlinejudge.org/external/108/10827.html )
Input:
2
5
1 -1 0 0 -4
2 3 -2 -3 2
4 1 -1 5 0
3 -2 1 -3 2
-3 2 4 1 -4
3
1 2 3
4 5 6
7 8 9
Output:
15
45
I ...
- Thu Jun 17, 2010 6:51 pm
- Forum: Volume 117 (11700-11799)
- Topic: 11723 - Numbering Roads
- Replies: 32
- Views: 12792
Re: 11723 - Numbering Roads
I also did this still wrong answer.yan yan wrote:try this:i think output should beCode: Select all
5 8
Code: Select all
Case 1: 0
Can someone post some input output?
- Wed Jun 16, 2010 1:52 pm
- Forum: Volume 117 (11700-11799)
- Topic: 11723 - Numbering Roads
- Replies: 32
- Views: 12792
Re: 11723 - Numbering Roads
Can someone give some hint for this problem?
Can't understand how the result is 1 for input 8 5
you can named 8 streets: 1 2 3 4 5 1A 2A 3A !
So, you only need one suffix!
:)
I did the same thing.But still wrong answer.
Code:
#include<iostream>
#include<cstdio>
#include<vector>
#include<string ...
Can't understand how the result is 1 for input 8 5
you can named 8 streets: 1 2 3 4 5 1A 2A 3A !
So, you only need one suffix!
:)
I did the same thing.But still wrong answer.
Code:
#include<iostream>
#include<cstdio>
#include<vector>
#include<string ...
- Wed Jun 16, 2010 7:14 am
- Forum: Volume 117 (11700-11799)
- Topic: 11723 - Numbering Roads
- Replies: 32
- Views: 12792
Re: 11723 - Numbering Roads
Code:
testCase=1;
while(scanf("%d %d",&a,&b)==2){
if(a+b==0){
break;
}
printf("Case %d: ",testCase);
save=a-b;
t=save/b;
g=save%b;
if(t>26){
printf("impossible\n");
testCase++;
continue;
}
if(g==0){
printf("%d\n",t);
testCase++;
continue;
}
printf("%d\n",t+1);
testCase ...
testCase=1;
while(scanf("%d %d",&a,&b)==2){
if(a+b==0){
break;
}
printf("Case %d: ",testCase);
save=a-b;
t=save/b;
g=save%b;
if(t>26){
printf("impossible\n");
testCase++;
continue;
}
if(g==0){
printf("%d\n",t);
testCase++;
continue;
}
printf("%d\n",t+1);
testCase ...
- Tue Jun 15, 2010 7:07 pm
- Forum: Volume 117 (11700-11799)
- Topic: 11723 - Numbering Roads
- Replies: 32
- Views: 12792
11723 - Numbering Roads
Can someone give some hint for this problem?
Can't understand how the result is 1 for input 8 5
Can't understand how the result is 1 for input 8 5