Problem hidden
|This problem was hidden by Editorial Board member probably because it has incorrect language|version or invalid test data, or description of the problem is not clear.|

ABR0001 - Арифметик үйлдлүүд(жишээ)

а, b хоёр бодит тоо өгөгдөв. Эдгээр тоонуудын нийлбэр, ялгавар, үржвэрийг ол.

Input

а ба b хоёр бодит тоог хооронд нь нэг хоосон зайгаар тусгаарлан өгнө

Output

Эхний мөрөнд уг хоёр тооны нийлбэр, дараагийн мөрөнд ялгавар (a-b), гурав дахь мөрөнд үржвэрийг таслалаас хойш нэг орны нарийвчлалтай байхаар хэвлэнэ.

Example

Input:
10.5 3.6

Output:
14.1
6.9
37.8

Паскал хэл дээрх бодолт:
 
      var
        a,b:real;
      begin
        read(a,b);
        writeln(a+b:0:1);
        writeln(a-b:0:1);
        writeln(a*b:0:1);
      end. 

С хэл дээрх бодолт:
   
      #include "stdio.h"
      int main()
      {
        float a,b;
        scanf("%f%f",&a,&b);
        printf("%.1f\n%.1f\n%.1f", a+b, a-b, a*b);
        return 0;
      } 

C++ хэл дээрх бодолт:

      #include "iostream"
      using namespace std;
      int main()
      {
        double a,b;
        cin >> a >> b;
        cout.setf(ios::fixed|ios::showpoint);
        cout.precision(1);
        cout << a+b << endl << a-b << endl << a*b;
        return 0;
      } 

Нэмсэн:sw40
Огноо:2007-10-14
Хугацааны хязгаарлалт:1s
Эх кодын хэмжээний хязгаарлалт:50000B
Memory limit:1536MB
Cluster: Cube (Intel G860)
Програмчлалын хэлүүд:Бүгд дараах хэлүүдээс бусад: ASM32-GCC MAWK BC C-CLANG NCSHARP CPP14 CPP14-CLANG COBOL COFFEE D-CLANG D-DMD DART ELIXIR ERL FANTOM FORTH GOSU GRV JS-RHINO JS-MONKEY JULIA KTLN NIM NODEJS OBJC OBJC-CLANG OCT PERL6 PICO PROLOG PYPY PYPY3 PY_NBC R RACKET RUST CHICKEN SQLITE SWIFT UNLAMBDA VB.NET
Эх сурвалж:Абрамов С. А.

hide comments
2013-09-14 12:25:10 SW13D038
#include <stdio.h>
#include <stdlib.h>
int main ()
{
float a, b;
scanf ("%f%f", &a, &b);
printf ("Result is %.0f\n", a+b);
printf ("Margin is %.0f\n", a-b);
printf ("Product is %.1f\n", a*b);
system ("pause");
return 0;
}
2013-09-06 12:00:02 Malice.Mercury
#include <stdio.h>
#include <stdlib.h>
int main(){
int a, b;

scanf("%d%d", &a, &b);
printf( "niilber=%d\n, ylgavar=%d\n, urjver=%d", a+b, a-b, a*b );
system("pause");
return 0;
}
2013-09-06 11:57:51 Malice.Mercury
#include "stdio.h"
int main()
{
float a,b;
scanf("%f%f",&a,&b);
printf("%.1f\n%.1f\n%.1f", a+b, a-b, a*b);
return 0;
}

Last edit: 2013-09-12 00:24:37
2013-06-22 14:49:25 BBoy
JAVA deer bolohgui bh yum?
2013-03-01 14:56:46 choijamts
Microsoft Visual Studio 2008 ene pragram dr bodson bodlogo c, c++ ymuuu
2013-01-11 10:02:54 shikhikhutag
#include<math.h>
#include<stdio.h>
#include<string.h>
#include<stdlib.h>
main()
{
double a,b,x,y,z;
scanf("%lf%lf",&a,&b);
x = a + b;
y = a - b;
z = a * b;
printf("%.1lf\n%.1lf\n%.1lf",x,y,z);
system("pause");
}

2012-10-12 09:03:45 sw12
gghcx
2012-05-31 12:10:28 .:Lick King:.
yoo ymar hetsu bodlogo ve?
2012-05-11 09:27:27 cs10d021
package cs10d021;
import java.text.*;
import java.util.*;

public class cs10d021 {


public static void main(String[] args) {
double a,b;
Scanner Stdin= new Scanner (System.in);
a = Stdin.nextDouble();
b = Stdin.nextDouble() ;
NumberFormat nf = new DecimalFormat("#0.0");
System.out.println(nf.format(a+b)) ;
System.out.println(nf.format(a-b)) ;
System.out.println(nf.format(a*b)) ;

}
}

Last edit: 2012-05-11 09:27:59
2012-04-16 08:00:41 idermonh
#include "stdio.h"
#include "conio.h"
#include "math.h"
int main ()
{
float h,t,g;
g=9.81;
scanf("%f",&h);
t=sqrt((2*h)/g);
printf("%.1f",t);
getch ();
return 0;
} zow zow
© Spoj.com. All Rights Reserved. Spoj uses Sphere Engine™ © by Sphere Research Labs.