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

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

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

Input

Зайгаар тусгаарлагдан 2 тоо өгөгдөнө. (Integer төрөл)

Output

Нийлбэр

Example

Input:
2 3

Output:
5

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

hide comments
2024-09-05 13:53:23
#include <bits/stdc++.h>
using namespace std;

vector<vector<int>> adj;
vector<bool> visited;

int dfs(int u) {
visited[u] = true;
int size = 1;
for(int v : adj[u])
if(!visited[v])
size += dfs(v);
return size;
}

int main() {
int n, m;
cin >> n >> m;
adj.resize(n);
visited.resize(n, false);
for(int i = 0; i < m; i++) {
int u, v;
cin >> u >> v;
adj[u].push_back(v);
adj[v].push_back(u);
}
int largest_component = 0;
for(int i = 0; i < n; i++) {
if(!visited[i])
largest_component = max(largest_component, dfs(i));
}
cout << largest_component;
}
2024-09-02 11:50:40
#include <bits/stdc++.h>
using namespace std;

int main() {
int n;
cin >> n;
vector<int> v;
for(int i = 0; i < n; i++)
v.push_back(i);
for(int i = 0; i < n; i++)
v[i] = v[i] + 1;
bool angri = true;
for(int i = 0; i < n; i++) {
if(angri) {
v.push_back(*v.begin());
angri = false;
} else {
cout << *v.begin() << endl;
v.erase(v.begin());
angri = true;
}
}

return 0;
}
2022-05-16 08:11:11
a=int(input())
b=int(input())
s=a+b
print(a+b)
2022-05-16 08:03:03
python?
2021-11-29 07:37:44
Ингэж чи минь явчлаа
Инээж бяцхан гараа өргөөд
Хүн хүний хэлдэг БАЯРТАЙ гэдгийг
Хэнэг ч үгүй хэлээд явлаа


2018-09-27 16:28:10
#include<iostream>
using namespace std;
main()
{
int a, b,s;
cin>>a>>b;
s=a+b;
cout<<s<<endl;
}
2018-07-23 09:12:30
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;

int main()
{
ll n;
cin>>n;

ll count=0;

for(ll i=1;i<n;i++)
{
ll j;
ll g=1;
for(j=1;j<n-1;j++)
{
g=(g*i)%n;

if(g==1)
break;
}
ll z=(g*i)%n;
if(z%n==1 && j==n-1)
count++;
}
cout<<count<<endl;//your code goes here
return 0;
}
2015-09-11 07:19:29 busykid
#include<stdio.h>
main()
{ int a,b,s;
//freopen("niilber.in","r",stdin);
//freopen("niilber.out","w",stdout);
scanf("%d %d",&a,&b);
s=a+b;
printf("%d",s);
}
2014-11-10 04:59:43 nomintulga
#include<stdio.h>
main()
{ int a,b,s;
freopen("niilber.in","r",stdin);
freopen("niilber.out","w",stdout);
scanf("%d %d",&a,&b);
s=a+b;
printf("%d",s);
}
ene bodlogiin aldaag heleed ogooch yah estoin be eswel buruu haruilt geed eswel horwvvleltiin aldaa geed bhiin
2014-04-18 15:37:43 Eegii
#include<stdio.h>
main<>
{ int a,b,s;
freopen("niilber.in","r",stdin);
freopen("niilber.out","w",stdout);
scanf("%d %d",&a,&b);
s=a+b;
printf("%d",s);
}
© Spoj.com. All Rights Reserved. Spoj uses Sphere Engine™ © by Sphere Research Labs.