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

CP306 - Math5

Өгсөн 3 оронтой тооны аравт ба зуутын орны цифрүүдийн аль их болохыг тогтоо. Хэрэв аравтын цифр их бол ARAVT, зуутын цифр их бол ZUUT гэж хэвлэ.

Input

Гурван оронтой нэг бүхэл тоо өгөгдөнө. Аравт болон зуутын оронгийн цифрүүд нь ялгаатай тоо өгөгдөнө.

Output

ARAVT, ZUUT гэсэн үр дүнгүүдийн нэгийг хэвлэнэ.

Example

Input:
526

Output:
ZUUT

Нэмсэн:munkhbat
Огноо:2015-03-09
Хугацааны хязгаарлалт:1s
Эх кодын хэмжээний хязгаарлалт:50000B
Memory limit:1536MB
Cluster: Cube (Intel G860)
Програмчлалын хэлүүд:Бүгд дараах хэлүүдээс бусад: ASM64 NCSHARP JS-MONKEY JULIA PYPY3

hide comments
2024-12-04 09:46:13
Nigga Dulmaa Nigga Dulmaa Nigga Dulmaa Nigga Dulmaa Nigga Dulmaa Nigga Dulmaa Nigga Dulmaa Nigga Dulmaa Nigga Dulmaa Nigga Dulmaa Nigga Dulmaa Nigga Dulmaa Nigga Dulmaa Nigga Dulmaa Nigga Dulmaa Nigga Dulmaa Nigga Dulmaa Nigga Dulmaa Nigga Dulmaa Nigga Dulmaa Nigga Dulmaa Nigga Dulmaa Nigga Dulmaa Nigga Dulmaa Nigga Dulmaa Nigga Dulmaa Nigga Dulmaa Nigga Dulmaa Nigga Dulmaa Nigga Dulmaa Nigga Dulmaa Nigga Dulmaa Nigga Dulmaa Nigga Dulmaa Nigga Dulmaa Nigga Dulmaa Nigga Dulmaa Nigga Dulmaa Nigga Dulmaa Nigga Dulmaa Nigga Dulmaa Nigga Dulmaa Nigga Dulmaa Nigga Dulmaa Nigga Dulmaa Nigga Dulmaa Nigga Dulmaa Nigga Dulmaa Nigga Dulmaa Nigga Dulmaa Nigga Dulmaa Nigga Dulmaa Nigga Dulmaa Nigga Dulmaa Nigga Dulmaa Nigga Dulmaa Nigga Dulmaa Nigga Dulmaa Nigga Dulmaa Nigga Dulmaa Nigga Dulmaa Nigga Dulmaa Nigga Dulmaa Nigga Dulmaa Nigga Dulmaa Nigga Dulmaa Nigga Dulmaa Nigga Dulmaa Nigga Dulmaa Nigga Dulmaa Nigga Dulmaa Nigga Dulmaa Nigga Dulmaa Nigga Dulmaa Nigga Dulmaa Nigga Dulmaa Nigga Dulmaa Nigga Dulmaa Nigga Dulmaa Nigga Dulmaa Nigga Dulmaa Nigga Dulmaa Nigga Dulmaa Nigga Dulmaa Nigga Dulmaa Nigga Dulmaa Nigga Dulmaa Nigga Dulmaa Nigga Dulmaa Nigga Dulmaa Nigga Dulmaa Nigga Dulmaa Nigga Dulmaa Nigga Dulmaa Nigga Dulmaa Nigga Dulmaa Nigga Dulmaa Nigga Dulmaa Nigga Dulmaa
2024-12-04 09:46:04
Nigga Dulmaa Nigga Dulmaa Nigga Dulmaa Nigga Dulmaa Nigga Dulmaa Nigga Dulmaa Nigga Dulmaa Nigga Dulmaa Nigga Dulmaa Nigga Dulmaa Nigga Dulmaa Nigga Dulmaa Nigga Dulmaa Nigga Dulmaa Nigga Dulmaa Nigga Dulmaa Nigga Dulmaa Nigga Dulmaa Nigga Dulmaa Nigga Dulmaa Nigga Dulmaa Nigga Dulmaa Nigga Dulmaa Nigga Dulmaa Nigga Dulmaa Nigga Dulmaa Nigga Dulmaa Nigga Dulmaa Nigga Dulmaa Nigga Dulmaa Nigga Dulmaa Nigga Dulmaa Nigga Dulmaa Nigga Dulmaa Nigga Dulmaa Nigga Dulmaa Nigga Dulmaa Nigga Dulmaa Nigga Dulmaa Nigga Dulmaa Nigga Dulmaa Nigga Dulmaa Nigga Dulmaa Nigga Dulmaa Nigga Dulmaa Nigga Dulmaa Nigga Dulmaa Nigga Dulmaa Nigga Dulmaa Nigga Dulmaa Nigga Dulmaa Nigga Dulmaa Nigga Dulmaa Nigga Dulmaa Nigga Dulmaa Nigga Dulmaa Nigga Dulmaa Nigga Dulmaa Nigga Dulmaa Nigga Dulmaa Nigga Dulmaa Nigga Dulmaa Nigga Dulmaa Nigga Dulmaa Nigga Dulmaa Nigga Dulmaa Nigga Dulmaa Nigga Dulmaa Nigga Dulmaa Nigga Dulmaa Nigga Dulmaa Nigga Dulmaa Nigga Dulmaa Nigga Dulmaa Nigga Dulmaa Nigga Dulmaa Nigga Dulmaa Nigga Dulmaa Nigga Dulmaa Nigga Dulmaa Nigga Dulmaa Nigga Dulmaa Nigga Dulmaa Nigga Dulmaa Nigga Dulmaa Nigga Dulmaa Nigga Dulmaa Nigga Dulmaa Nigga Dulmaa Nigga Dulmaa Nigga Dulmaa Nigga Dulmaa Nigga Dulmaa Nigga Dulmaa Nigga Dulmaa Nigga Dulmaa Nigga Dulmaa Nigga Dulmaa Nigga Dulmaa
2024-12-04 09:45:48
Nigga Dulmaa Nigga Dulmaa Nigga Dulmaa Nigga Dulmaa Nigga Dulmaa Nigga Dulmaa Nigga Dulmaa Nigga Dulmaa Nigga Dulmaa Nigga Dulmaa Nigga Dulmaa Nigga Dulmaa Nigga Dulmaa Nigga Dulmaa Nigga Dulmaa Nigga Dulmaa Nigga Dulmaa Nigga Dulmaa Nigga Dulmaa Nigga Dulmaa Nigga Dulmaa Nigga Dulmaa Nigga Dulmaa Nigga Dulmaa Nigga Dulmaa Nigga Dulmaa Nigga Dulmaa Nigga Dulmaa Nigga Dulmaa Nigga Dulmaa Nigga Dulmaa Nigga Dulmaa Nigga Dulmaa Nigga Dulmaa Nigga Dulmaa Nigga Dulmaa Nigga Dulmaa Nigga Dulmaa Nigga Dulmaa Nigga Dulmaa Nigga Dulmaa Nigga Dulmaa Nigga Dulmaa Nigga Dulmaa Nigga Dulmaa Nigga Dulmaa Nigga Dulmaa Nigga Dulmaa Nigga Dulmaa Nigga Dulmaa Nigga Dulmaa Nigga Dulmaa Nigga Dulmaa Nigga Dulmaa Nigga Dulmaa Nigga Dulmaa Nigga Dulmaa Nigga Dulmaa Nigga Dulmaa Nigga Dulmaa Nigga Dulmaa Nigga Dulmaa Nigga Dulmaa Nigga Dulmaa Nigga Dulmaa Nigga Dulmaa Nigga Dulmaa Nigga Dulmaa Nigga Dulmaa Nigga Dulmaa Nigga Dulmaa Nigga Dulmaa Nigga Dulmaa Nigga Dulmaa Nigga Dulmaa Nigga Dulmaa Nigga Dulmaa Nigga Dulmaa Nigga Dulmaa Nigga Dulmaa Nigga Dulmaa Nigga Dulmaa Nigga Dulmaa Nigga Dulmaa Nigga Dulmaa Nigga Dulmaa Nigga Dulmaa Nigga Dulmaa Nigga Dulmaa Nigga Dulmaa Nigga Dulmaa Nigga Dulmaa Nigga Dulmaa Nigga Dulmaa Nigga Dulmaa Nigga Dulmaa Nigga Dulmaa Nigga Dulmaa Nigga Dulmaa
2024-12-04 03:43:53
// matrix
#include <iostream>
#include <vector>
using namespace std;
int main(){
int N,M,K,W;
cin>>N>>M>>K>>W;
vector<vector<int>> g(N,vector<int>(M));
for(int i=0;i<N;i++){
for(int j=0;j<M;j++){
cin>>g[i][j];
}
}
vector<vector<int>> p(N+1,vector<int>(M+1,0));
for(int i=1;i<=N;i++){
for(int j=1;j<=M;j++){
p[i][j]=g[i-1][j-1]+p[i-1][j]+p[i][j-1]-p[i-1][j-1];
}
}
int c=0;
for(int i=0;i<=N-W;i++){
for(int j=0;j<=M-W;j++){
int s=p[i+W][j+W]-p[i][j+W]-p[i+W][j]+p[i][j];
if(s==K){
c++;
}
}
}
cout<<c<<endl;
return 0;
}
// matrits vanya dulma ynzalaarai uursdu
2024-12-04 03:43:12
#include <bits/stdc++.h>
using namespace std;
int main() {
int n;
cin >> n;
vector<int> a(n);
for (int i = 0; i < n; i++) {
cin >> a[i];
}
long long m = 0;
for (int i = 1; i < n; i++) {
if (a[i] < a[i-1]) {
m += a[i-1] - a[i];
a[i] = a[i-1];
}
}
cout << m << endl;
return 0;
}
// hudulguun vanya dulma
2024-12-04 03:11:38
#include <bits/stdc++.h>
using namespace std;
int main() {
int n;
cin>>n;
long long r=1LL*n*(n+1)/2;
long long s=0;
for (int i=0;i<n-1;i++) {
int x;
cin>>x;
s+=x;
}
cout<<r-s<<endl;
return 0;
} ee dulmaa Яаруу Эрчис
2024-12-04 03:11:38
#include <bits/stdc++.h>
using namespace std;
int main() {
int n;
cin>>n;
long long r=1LL*n*(n+1)/2;
long long s=0;
for (int i=0;i<n-1;i++) {
int x;
cin>>x;
s+=x;
}
cout<<r-s<<endl;
return 0;
} ee dulmaa Яаруу Эрчис
2024-12-04 03:07:27
// matrix
#include <iostream>
#include <vector>
using namespace std;
int main(){
int N,M,K,W;
cin>>N>>M>>K>>W;
vector<vector<int>> g(N,vector<int>(M));
for(int i=0;i<N;i++){
for(int j=0;j<M;j++){
cin>>g[i][j];
}
}
vector<vector<int>> p(N+1,vector<int>(M+1,0));
for(int i=1;i<=N;i++){
for(int j=1;j<=M;j++){
p[i][j]=g[i-1][j-1]+p[i-1][j]+p[i][j-1]-p[i-1][j-1];
}
}
int c=0;
for(int i=0;i<=N-W;i++){
for(int j=0;j<=M-W;j++){
int s=p[i+W][j+W]-p[i][j+W]-p[i+W][j]+p[i][j];
if(s==K){
c++;
}
}
}
cout<<c<<endl;
return 0;
}
2024-12-04 03:04:41
dulmaa huffman buruu yum bn


Last edit: 2024-12-04 03:41:53
2024-12-04 03:03:30
#include <bits/stdc++.h>
using namespace std;
int main() {
int n;
cin >> n;
vector<int> a(n);
for (int i = 0; i < n; i++) {
cin >> a[i];
}
long long m = 0;
for (int i = 1; i < n; i++) {
if (a[i] < a[i-1]) {
m += a[i-1] - a[i];
a[i] = a[i-1];
}
}
cout << m << endl;
return 0;
}
// hudulguun
© Spoj.com. All Rights Reserved. Spoj uses Sphere Engine™ © by Sphere Research Labs.