Skip to content

Instantly share code, notes, and snippets.

View ealexisaraujo's full-sized avatar
:electron:
Focusing

Alexis Araujo ealexisaraujo

:electron:
Focusing
View GitHub Profile
#!/bin/bash
# Use this for your user data (script from top to bottom)
# install httpd (Linux 2 version)
yum update -y
yum install -y httpd
{
"Version": "2012-10-17",
"Id": "unique-id-to-describe-below-statement",
"Statement": [
{
"Sid": "unique-sid",
"Effect": "Allow",
"Principal": "*",
"Action": [
"s3:GetObject"
stack = []
M = []
for _ in range(int(input())):
d = [int(x) for x in input().split()]
if d[0] == 1:
stack.append(d[1])
M.append(max(d[1], M[-1])
if M else d[1])
elif d[0] == 2: