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

RGB7796 - Maximum Subarray Sum

Problem text...

Input

Input description...

Output

Output description...

Example

Input:
etc.

Output:
etc.

Нэмсэн:Bataa
Огноо:2020-04-14
Хугацааны хязгаарлалт:1s
Эх кодын хэмжээний хязгаарлалт:50000B
Memory limit:1536MB
Cluster: Cube (Intel G860)
Програмчлалын хэлүүд:ADA95 ASM32 ASM64 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
Эх сурвалж:https://www.hackerrank.com/challenges/maximum-subarray-sum/problem

hide comments
2024-12-06 05:46:40
/*
.:*+=%@@@@@@=-.
.:=@#@@@#@@#######%==*.
.-=####@######%*-.....:%##%.
.*@###########%+:--........-%@-
.*@##############@+--.........-:%-
.+##################@==%%%%=+*:----+.
.-@####################%++%@@@@@=+**%@@*
.%###################@%%@@@###@%+:--%@@%.
-@###################@%%%%*::*%++:-----=@+.
-#####################@%=++++++*:-------.-=:
.+####################@%++*::-:::--::*:::***=:
.@#####################%=++*::::-:::++*=##@@#@-
..#####################@%%=++**:::::**+%@#@%%##-..
.%####################@@%=+++*+****::*=@######@.
.=######################@%%==+==++**+=@%@##@###+:...
-#######################@@@%%%===++=@@@%=++===*::--...
-########################@@@@@@@%==%%=++==@@:::::*:--.
..:#########################@@@@@@%%======++++::-..:-.--...
%#############################@###@%%@@%==%=%*----.--.::---.
#############################################*-:*:-:---*---- .
#############################################*--*--:---*---:-.
#############################################+--::--::-*::-::.
###########################################+:*-.---.---.:---*-..
###########################################**:-----------------.
##########################################@::**:--::::::--:::::-
###########################################:--:*:::::::::**::*+*
###########################################=:::***::::::**:::*+*
############################@@@@@@#########@+****::::********+++
############################@%%%%%@@@@@@@###%+***::::::::***+==+
############################@%%%%%%%%%%%@####=+:::-::::-::*+=%%+
#############################@%%%%%%%%%%@#####=::--------:*=%@%+
%###########################@%%%%==%%%%%%@##@#=:------..-:+%@@%=
----------------------------------------------
--------------------------------------------
----------------------------------------------
--------------------------------------------
----------------------------------------------

o###########oo
o##" ""##o
o#" "##
o#" "#o
#" ## ## "##
#" ##
# ################### #
# #
# #
# #
# #
# #
# #
#o #
"#o ##
"#o ##
"#o o#"
"#o ##
"#o o#"
"#ooo ooo#######oo
############### "######o
o###"" "###o # ###
o###o oooo ### oo####"
o###**# #**# ############"
""##""""""""""########### #
# oooooooo#"#** ## #
# # # # ** ## #
#o# #o# *****###ooo#
##
## o###o
## o##***##
o########## #***#**##o
o##" ""### #***##***#
o#######o ### oo#### ##**####*#
o##" ""#############"" ##****###
##" ## ##*##*###
## ### ##### ##
## ### # ## #
## ## #
## ##
## ###
## ###oo
### ""###
###
###
*/
2024-09-25 04:00:43
} int a = 1;
System.out.println(a);
int k = 2;
System.out.println(a + " DANS NEMEH");


System.out.println(k + " DANS HASAH");
int t = 3;

System.out.println(t + " MUNGU NEMEH");
int kk = 4;
System.out.println(kk + " BOLIH");
int kk1 = 5;
System.out.println(kk1 + " DANSNI ULDEGDEL");
int kk2=6;
System.out.println(kk2 + " MUNGU HASAH");


Scanner obj2 = new Scanner(System.in);

int hd = obj2.nextInt();
if (hd == a) {
System.out.println("DANSNI DUGAAR");
Scanner objjj = new Scanner(System.in);
int danss;
danss = objjj.nextInt();
dans.add(danss);

} else {
if (hd == k) {
System.out.println("Usgtah DANSNI DUGAAR");
Scanner objj1 = new Scanner(System.in);
int danss1;
danss1 = objj1.nextInt();
System.out.println(dans.get(danss1) + " DANS HASAGDLA");
dans.remove(danss1);

} else {
if (hd == t) {
System.out.println("MUNGU NEMEH DANSNI DUGAAR");
Scanner objj2 = new Scanner(System.in);
int danss2;
danss2 = objj2.nextInt();
System.out.println(dans.get(danss2));
System.out.println("NEMEH DUN");
Scanner objj3 = new Scanner(System.in);
int danss3;
danss3 = objj3.nextInt();
a12[danss2] = a12[danss2] + danss3;

System.out.println("DANSNI ULDEGDEL " + a12[danss2]);

}else{
if (hd == kk1) {
System.out.println("DANS SONGOH");
Scanner objj5 = new Scanner(System.in);
int danss4;
danss4 = objj5.nextInt();
System.out.println(dans.get(danss4));
System.out.println("DANSNI ULDEGDEL " + a12[danss4]);
}else{
if(hd == kk2){
System.out.println("MUNGU HASAH DANSNI DUGAAR");
Scanner objj6 = new Scanner(System.in);
int danss22;
danss22 = objj6.nextInt();
System.out.println(dans.get(danss22));
System.out.println("HASAH DUN");
Scanner objj34 = new Scanner(System.in);
int danss33;
danss33 = objj34.nextInt();
a12[danss22] = a12[danss22] - danss33;

System.out.println("DANSNI ULDEGDEL " + a12[danss22]);
}
}

}
}
}




// Online C++ compiler to run C++ program online

jk++;
for (int i1 : dans) {
System.out.println("Idevhtei dans " + i1);
}
if(hd==kk){
break;

}


}
System.out.println("TANI SONGOSON DANS BAIHGVI BAINA");
2024-06-03 04:00:54
i kms
2024-05-29 17:35:24
#include<iostream>
using namespace std;
main(){
int a;
cin >> a;
if(a>0){
cout << "SERGELEN BAATAR" << " ";
if(a>0){
cout << "LOVES" << " ";
if(a>0){
cout << "BIG" << " ";
if(a>0){
cout << "OILY" << " ";
if(a>0){
cout << "BALLZ" << " ";
if(a>0){
cout << "IN" << " ";
if(a>0){
cout << "HIS" << " ";
if(a>0){
cout << "MOUTH" << " . ";
}
}
}
}
}
}
}
}
return 0;
}
2024-05-29 07:00:24
ym huulahgaad yasan zaalhuu lalar bee chi
2023-08-22 08:11:31
#include <iostream>
using namespace std;

int main() {

// your code here
long long a,t,c,d,e,f,i,b,g,j,k[100000],h=0,u=0,s;
cin>>a>>b>>c;
if(a>b) {
cout<<(c*2+2*b+1);
}
if(a==b){
cout<<c*2+a*2;
}
if(b>a) {
cout<<(c*2+2*a+1);
}
return 0;
}
2023-05-05 04:20:30
stfy nigga
2023-05-05 04:20:27
stfy nigga
2023-05-05 04:19:45
#include <iostream>

using namespace std;

int main()
{
int b,i,s,d=0;
string a;
cin>>a;
s=a.size();
for (i=0;i<=s;i++) {
if ((a[i]>='a' && a[i]<='z')||(a[i]>='A' && a[i]<='Z')) {
d=d+1;
}
2023-04-24 05:27:13
Өдөр Бүр ЗААВАЛ УУ ШАР ДОКТОР
© Spoj.com. All Rights Reserved. Spoj uses Sphere Engine™ © by Sphere Research Labs.