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

RGB7001 - 2 тооны нийлбэр

Өгөгдсөн бүхэл тооны нийлбэрийг ол.

Input

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

Output

2 тооны нийлбэр.

Example

Input:
12 23

Output:
35

Нэмсэн:Bataa
Огноо:2011-01-15
Хугацааны хязгаарлалт: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
2024-10-24 09:10:36
#include <iostream>
#include <vector>
#include <algorithm>
using namespace std;

void printDivisors(int n) {
vector<int> divisors;

for (int i = 1; i * i <= n; ++i) {
if (n % i == 0) {
divisors.push_back(i);
if (i != n / i) {
divisors.push_back(n / i);
}
}
}


sort(divisors.begin(), divisors.end());


for (size_t i = 0; i < divisors.size(); ++i) {
cout << divisors[i];
if (i < divisors.size() - 1) {
cout << " ";
}
}
cout << endl;
}

int main() {
int n;
cin >> n;
printDivisors(n);
return 0;
}
2024-10-24 09:04:31
#include <iostream>
#include <iomanip>

int main() {
double inch;
std::cin >> inch;

double cm = inch * 2.54;
std::cout << std::fixed << std::setprecision(2) << cm << std::endl;

return 0;
}




2024-10-24 09:04:31
#include <iostream>
#include <iomanip>
int main() {
double inch;
std::cin >> inch;
double cm = inch * 2.54;
std::cout << std::fixed << std::setprecision(2) << cm << std::endl;
return 0;
}




2024-10-24 09:04:30
#include <iostream>
#include <iomanip>

int main() {
double inch;
std::cin >> inch;

double cm = inch * 2.54;
std::cout << std::fixed << std::setprecision(2) << cm << std::endl;

return 0;
}




2024-10-24 09:04:30
#include <iostream>
#include <iomanip>

int main() {
double inch;
std::cin >> inch;

double cm = inch * 2.54;
std::cout << std::fixed << std::setprecision(2) << cm << std::endl;

return 0;
}




2024-10-24 09:04:30
#include <iostream>
#include <iomanip>
int main() {
double inch;
std::cin >> inch;
double cm = inch * 2.54;
std::cout << std::fixed << std::setprecision(2) << cm << std::endl;
return 0;
}




2024-10-24 09:04:30
#include <iostream>
#include <iomanip>

int main() {
double inch;
std::cin >> inch;

double cm = inch * 2.54;
std::cout << std::fixed << std::setprecision(2) << cm << std::endl;

return 0;
}




2024-10-24 09:04:29
#include <iostream>
#include <iomanip>

int main() {
double inch;
std::cin >> inch;

double cm = inch * 2.54;
std::cout << std::fixed << std::setprecision(2) << cm << std::endl;

return 0;
}




2024-10-24 09:04:29
#include <iostream>
#include <iomanip>
int main() {
double inch;
std::cin >> inch;
double cm = inch * 2.54;
std::cout << std::fixed << std::setprecision(2) << cm << std::endl;
return 0;
}




2024-10-24 09:04:29
#include <iostream>
#include <iomanip>

int main() {
double inch;
std::cin >> inch;

double cm = inch * 2.54;
std::cout << std::fixed << std::setprecision(2) << cm << std::endl;

return 0;
}




© Spoj.com. All Rights Reserved. Spoj uses Sphere Engine™ © by Sphere Research Labs.