Competitive Programming Library
Translate
Views
Friday, July 22, 2022
Solution Kattis - Architecture
Link Problem:
https://open.kattis.com/problems/architecture
Submission 9161708
Edit and resubmit
ID
DATE
PROBLEM
STATUS
CPU
LANG
TEST CASES
9161708
18:41:44
Architecture
Accepted
0.00 s
C++
52/52
Files submitted
architecture.cpp
Download file
#include
<bits/stdc++.h>
using
namespace
std
;
int
r
,
c
,
x
,
y
,
X
=
0
,
Y
=
0
;
int
main
(
)
{
cin
>>
r
>>
c
;
while
(
r
--
)
{
cin
>>
x
;
X
=
max
(
X
,
x
)
;
}
while
(
c
--
)
{
cin
>>
y
;
Y
=
max
(
Y
,
y
)
;
}
cout
<<
(
X
==
Y
?
"
possible
"
:
"
impossible
"
)
;
}
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment