Algorithm6
Youngsung Choi Youngsung Choi { "cells": [ { "cell_type": "markdown", "metadata": {}, "source": [ "# 2022.02.07 알고리즘" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "### 2869\t달팽이는 올라가고 싶다" ] }, { "cell_type": "code", "execution_count": null, "metadata": {}, "outputs": [], "source": [ "A,B,V = map(int, input().split())\n", "print((V - B - 1) // (A - B) + 1)" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "### \t10250\tACM 호텔" ] }, { "cell_type": "code", "execution_count": 14, "metadata": { "scrolled": false }, "outputs": [ { "name": "stdout", "output_type": "stream", "text": [ "2\n", "6 12 10\n", "402\n", "30 50 72\n", "1203\n" ] } ], "source": [ "T = int(input())\n", "\n", "for i in range(T):\n", " H,W,N = map(int, input().split())\n", " front = N%H\n", " end = N/H + 1\n", " \n", " if N % H == 0:\n", " front = H\n", " end -= 1\n", " \n", " print('%d%02d' % (front, end))" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "### 2775\t부녀회장이 될테야" ] }, { "cell_type": "code", "execution_count": 17, "metadata": {}, "outputs": [ { "name": "stdout", "output_type": "stream", "text": [ "[1, 2, 3, 4, 5, 6, 7, 8, 9, 10]\n" ] } ], "source": [ "print([x for x in range(1, 10+1)])" ] } ], "metadata": { "kernelspec": { "display_name": "Python 3", "language": "python", "name": "python3" }, "language_info": { "codemirror_mode": { "name": "ipython", "version": 3 }, "file_extension": ".py", "mimetype": "text/x-python", "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", "version": "3.7.6" } }, "nbformat": 4, "nbformat_minor": 4 }