Search found 3 matches

by User239
Thu Sep 14, 2006 12:22 pm
Forum: Volume 101 (10100-10199)
Topic: 10137 - The Trip
Replies: 159
Views: 70304

Oh, shit! I thought "within a cent" means equal amount of cents. For example $9.005 and $9.001. Now I know what is "within a cent" :-?
P. S. I'm from Russia too.
by User239
Wed Sep 13, 2006 9:11 pm
Forum: Volume 101 (10100-10199)
Topic: 10137 - The Trip
Replies: 159
Views: 70304

10137 I can't understand the example!!! Plz, Help!!!

Example is

Code: Select all

4
15.00
15.01
3.00
3.01
And we exchanged $11.99.
But how money leave their hands? (For example fird gives x money to second or somewhat else?)
by User239
Wed Sep 13, 2006 7:51 am
Forum: Volume 1 (100-199)
Topic: 100 - The 3n + 1 problem
Replies: 1394
Views: 318271

This code is AC

#include <iostream>

using namespace std;

int main(void){
long i,j,m,temp,total,max;
while(cin>>i>>j){
cout<<i<<" "<<j<<" ";
max=0;
if(i>j){
temp=i;
i=j;
j=temp;
}
for(m=i;m<=j;m++){
temp=m;
total=0;
while(1){
if(temp==1){
total++;
break ...

Go to advanced search