Programming Logic & ICPC
Subscribe To
Posts
Atom
Posts
Comments
Atom
Comments
Saturday, June 6, 2015
LightOJ - 1069 - Lift
#include <bits/stdc++.h>
using
namespace
std
;
int
main
(
)
{
int
t, n, m, in, cs
=
0
;
cin
>>
t
;
while
(
t
--
)
{
int
ans
=
19
;
cin
>>
n
>>
m
;
ans
+
=
(
(
n
+
abs
(
n
-
m
)
)
*
4
)
;
cout
<<
"Case "
<<
++
cs
<<
": "
<<
ans
<<
endl
;
}
return
0
;
}
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment