Pastebin
API
tools
faq
paste
Login
Sign up
SHARE
TWEET
P6.08 P71753 Maximum of each sequence
csansoon
Nov 7th, 2018
101
0
Never
Add comment
Not a member of Pastebin yet?
Sign Up
, it unlocks many cool features!
C++
0.24 KB
| None
|
0
0
raw
download
clone
embed
print
report
#include <iostream>
using
namespace
std
;
int
main
(
)
{
int
n,x,max
;
while
(
cin
>>
n
)
{
cin
>>
max
;
for
(
n
;
n
-
1
>
0
;
n
--
)
{
cin
>>
x
;
if
(
x
>
max
)
max
=
x
;
}
cout
<<
max
<<
endl
;
}
}
Add Comment
Please,
Sign In
to add comment
Public Pastes
🤑 G2A.com Free Gift Card Guide May 2024 FIX 🤑
GetText | 4 min ago | 0.39 KB
Жизнь прижок скорость
Lua | 7 min ago | 4.00 KB
Roman2Integer x2
Java | 10 min ago | 1.50 KB
ЛР2 ООП
C++ | 15 min ago | 3.58 KB
le sigh
JavaScript | 20 min ago | 12.63 KB
auto Backward Elim
R | 26 min ago | 0.51 KB
Untitled
SQL | 46 min ago | 1.71 KB
weapon_script
GDScript | 55 min ago | 16.67 KB
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the
Cookies Policy
.
OK, I Understand
Not a member of Pastebin yet?
Sign Up
, it unlocks many cool features!