목록분류 전체 보기 (89)
CHIqueen
Below we will define an n-interesting polygon. Your task is to find the area of a polygon for a given n. A 1-interesting polygon is just a square with a side of length 1. An n-interesting polygon is obtained by taking the n - 1-interesting polygon and appending 1-interesting polygons to its rim, side by side. You can see the 1-, 2-, 3- and 4-interesting polygons in the picture below. func shapeA..
Ratiorg got statues of different sizes as a present from CodeMaster for his birthday, each statue having an non-negative integer size. Since he likes to make things perfect, he wants to arrange them from smallest to largest so that each statue will be bigger than the previous one exactly by 1. He may need some additional statues to be able to accomplish that. Help him figure out the minimum numb..
Given an array of integers, find the pair of adjacent elements that has the largest product and return that product. Example For inputArray = [3, 6, -2, -5, 7, 3], the output should be adjacentElementsProduct(inputArray) = 21. 7 and 3 produce the largest product. def adjacentElementsProduct(inputArray): return max([inputArray[i] * inputArray[i+1] for i in range(len(inputArray)-1)]) 그냥 다 곱한다음에 ma..
Given the string, check if it is a palindrome. Example For inputString = "aabaa", the output should be checkPalindrome(inputString) = true; For inputString = "abac", the output should be checkPalindrome(inputString) = false; For inputString = "a", the output should be checkPalindrome(inputString) = true. def checkPalindrome(inputString): return inputString==inputString[::-1]
Given a year, return the century it is in. The first century spans from the year 1 up to and including the year 100, the second - from the year 101 up to and including the year 200, etc. Example For year = 1905, the output should be centuryFromYear(year) = 20; For year = 1700, the output should be centuryFromYear(year) = 17. def centuryFromYear(year): return (year + 99) // 100
Write a function that returns the sum of two numbers. Example For param1 = 1 and param2 = 2, the output should be add(param1, param2) = 3. int add(int param1, int param2) { return param1+param2; }
오늘 필기 공부를 위해 기출문제를 다운 받고 인쇄 하려고 봤더니 대략 100개 정도의 한글파일이 나왔다. 인쇄하기 편하기 위해 pdf로 바꾸려고 파일 하나하나 몇번씩 클릭해서 pdf로 바꾸려니 개발 공부해서 어디 엿 바꿔 먹었나 생각이 들어서 바로 hwp를 pdf로 바꾸는 방법을 찾아보다가 https://www.youtube.com/watch?v=5aobDyMFWHo 이 영상을 보게 되었다. 하지만 지금 api가 바뀌어서 그런지 HAction과 HParameterSet이 안보여서 새로 찾다가 방법을 찾아 오랜만에 이 글을 쓰게 되었다. 코드를 먼저 보자 import os import win32com.client as win32 import win32gui BASE_DIR = "C:\\Users\\CHIq..
200ptMarioJones is studying grade 10. He was submitting his school Assignment when something weird happened and his computer shut down without any warning. Can you help him ? 메모리 포렌식 문제입니다. rekall을 통해 프로세스부터 간단하게 봅시다. 대충 느낌이 chrome이 프로세스 은닉 되었을 가능성이 있습니다. psxview해보려 했는데 갑자기 rekall이 터져서 volatility로 급하게 넘어가겠습니다. 크롬의 메모리를 떼어 보겠습니다. pctf{Late_submissions_can_be_good}
200ptRyan's friend has hidden something in this image and challenged his to find it out. Can you help him recover the secret message ?? zip파일에는 암호가걸린 pdf파일과 용량큰 jpeg 파일이 있습니다. 49 44 33 04는 koz라는 확장자를 가진 Sprint Music Store audio 라고 합니다.https://filesignatures.net/index.php?page=search&search=49443303000000&mode=SIG 이 파일은 audacity에서도 인식을 못해서 mp3파일로 바꿔 줍니다.https://www.online-convert.com/file-format/..
150pt In the mid 21st century, Ex-NASA pilot Cooper leaves his little daughter and goes an interstellar journey around the space to find an alternative planet (PLAN A) or to capture gravitational data and send it back to earth, which Scientists will use to save Earth. However Cooper finds himself stuck in a tesseract that spans across time, there is only one way he could transmit the data to his..