This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"Version": "2012-10-17", | |
"Id": "unique-id-to-describe-below-statement", | |
"Statement": [ | |
{ | |
"Sid": "unique-sid", | |
"Effect": "Allow", | |
"Principal": "*", | |
"Action": [ | |
"s3:GetObject" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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: |