Skip to content

Instantly share code, notes, and snippets.

@autolyticus
Created April 2, 2019 20:19
Show Gist options
  • Select an option

  • Save autolyticus/870a32152486d2150f0aaa40c7b31e21 to your computer and use it in GitHub Desktop.

Select an option

Save autolyticus/870a32152486d2150f0aaa40c7b31e21 to your computer and use it in GitHub Desktop.
#! /usr/bin/env python
# -*- coding: utf-8 -*-
# vim:fenc=utf-8
#
# Copyright © 2019 g <g@ABCL>
#
# Distributed under terms of the MIT license.
# 10 - 1
print('YES' if __import__('re').search('[^\w\s]', input()) else 'NO', end='')
# 10 - 2
print(
'YES' if [0, 1, 3, 6, 7, 9, 12, 13, 15, 18, 19, 21, 24, 25, 27].count(
(int(input())) % 30) > 0 else 'NO',
end='')
# 10 - 3
print(
*[round((2 * 50 * float(x) / 30)**0.5) for x in input().split(',')],
sep=',',
end='')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment