Skip to content

Instantly share code, notes, and snippets.

View aseevlx's full-sized avatar

Alex Aseev aseevlx

View GitHub Profile
@aseevlx
aseevlx / Seminar 3.py
Last active September 21, 2015 19:37
Seminar 3
F
n = int(input())
m = int(input())
k = int(input())
if (k > (n * m)):
print("NO")
if (k % n == 0) or (k % m == 0):
print("YES")
else:
print("NO")
A
n = input().split()
k = input().split()
z = int(k[0])+1
n.append(0)
for i in n[int(k[0]):-1]:
n[z] = i
z += 1
n[int(k[0])] = int(k[1])
#!/usr/bin/ruby
require 'base64'
string_orig="paste_your_base64_encoded_string_here"
string_dec=Base64.decode64(string_orig)
puts string_dec.unpack('C*')