Skip to content

Instantly share code, notes, and snippets.

@autolyticus
Created February 27, 2019 16:54
Show Gist options
  • Select an option

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

Select an option

Save autolyticus/b98b32d2b0b6c67472dc3761296af4a9 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.
# 4 - 1
from functools import reduce
print(reduce(lambda x, y: x * y, range(1, int(input()) + 1)), end='')
# 4 - 2
a, b = [int(x) for x in input().split()]
for i in range(1, a * b, b):
print(*(range(i, i + b)))
# 4 - 3
print(*sorted([int(input()) for _ in range(int(input()))]), end='')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment