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.|

RGB7019 - Илэрхийлэл 1

Өгөгдсөн илэрхийллийн утгыг ол. A=B*C-D

Input

Нэг мөрөнд 3 бүхэл тоо нэг нэг зайгаар тусгаарлагдан өгөгдөнө.

Output

Илэрхийллийн нэг мөрөнд гарна.

Example

Input:
2 3 4

Output:
2

Нэмсэн:Bataa
Огноо:2013-01-01
Хугацааны хязгаарлалт:1s
Эх кодын хэмжээний хязгаарлалт:50000B
Memory limit:1536MB
Cluster: Cube (Intel G860)
Програмчлалын хэлүүд:ADA95 ASM32 BASH BF C NCSHARP CSHARP C++ 4.3.2 CPP C99 CLPS LISP sbcl LISP clisp D ERL FORTRAN HASK ICON ICK JAVA JS-RHINO JULIA LUA NEM NICE OCAML PAS-GPC PAS-FPC PERL PHP PIKE PRLG-swi PYTHON PYPY3 PYTHON3 RUBY SCALA SCM guile ST TCL WHITESPACE

hide comments
2023-11-13 08:34:02
.

Last edit: 2023-11-16 02:17:59
2023-11-02 12:13:30
#include<iostream>
using namespace std;
int main(){
long long k,n,w,a,i,b,c,d;
cin>>a;
b=a%10;
c=a%100/10;
d=a/100;
k=1;
if(b>0&&a%b>0){
k=0;
}
if(c>0&&a%c>0){
k=0;
}
if(d>0&&a%d>0){
k=0;
}
cout<<k;

}
2023-10-24 06:58:15
eggtuulsuga
2023-10-20 06:55:40
gomo sergelen love misheel
2023-10-16 10:14:40
#include <iostream>
#include <sstream>
#include <string>
#include <cstdlib>
#include <cmath>

using namespace std;

// Headers
string toString (double);
int toInt (string);
double toDouble (string);

int main() {
int a, d, b, c;

cin >> c;
d = (int) ((double) c / 10);
b = c % 10;
a = b * d;
cout << d << endl;
cout << b << endl;
cout << a << endl;
return 0;
}

// The following implements type conversion functions.
string toString (double value) { //int also
stringstream temp;
temp << value;
return temp.str();
}

int toInt (string text) {
return atoi(text.c_str());
}

double toDouble (string text) {
return atof(text.c_str());
}
2023-10-09 05:08:16
tom is monke
and 7-1 class gay tengis has crush on7-1 smol saraana

Last edit: 2023-10-09 05:09:01
2023-09-25 17:39:40
7-1 gomo tengis 7-1 saraanad sn
#include<bits/stdc++.h>
using namespace std;
int main(){
int a,b,c,d;
cin>>b>>c>>d;
a=b*c-d;
cout<<a<<endl;
}
2023-09-14 10:03:13
Munkhuu muu suga uliralaa hii
2023-08-24 09:25:57
#include <bits/stdc++.h>
using namespace std;
int main() {
long long a,b,c,d,e,f,g,h,i,j,k=0,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z;
cin>>n;
s=0;
t=0;

cin>>a>>b>>c>>d;
s=a+b+c+d;
for(i=2;i<=n;i++){
cin>>a>>b>>c>>d;
t=a+b+c+d;
if(t>s)
k++;
}
cout<<k+1;
return 0;
}
2023-08-24 06:26:42


Last edit: 2023-08-24 09:26:28
© Spoj.com. All Rights Reserved. Spoj uses Sphere Engine™ © by Sphere Research Labs.