Not null
  • 홈
  • IT정보
  • C
  • Assemble
  • Python
  • System programing
  • Window
  • Linux
  • System
  • Web
  • Network
  • Forensic
  • 메뉴 닫기
  • 글작성
  • 방명록
  • 환경설정
    • All (102)
      • network (14)
      • ARM (2)
      • Programing (41)
        • C (3)
        • Assemble (0)
        • Python (8)
        • JavaScript (1)
        • Systemprograming (0)
        • 자료구조, Algorithm (20)
        • Web (4)
        • Git (2)
        • DataBase (1)
        • 운영, 배포, 관리 (2)
      • OS (4)
        • Window (0)
        • Linux (1)
        • theory (3)
      • etc, (3)
      • Hacking (18)
        • System technique (3)
        • Web technique (6)
        • Reversing (9)
      • wargame (11)
      • project (5)
        • android (2)
        • Automated vulnerability (0)
        • Vulnerability analysis (1)
        • Malware Analysis (0)
        • Code Virtualized (1)
      • school.study (1)
  • 홈
  • 태그
  • 방명록
Programing/자료구조, Algorithm

programmers - 쇠막대기[level2] - python

12345678910111213def solution(arrangement): answer = 0 lst = [] arrangement = arrangement.replace("()", "x") print(arrangement) for i in range(0, len(arrangement)): if arrangement[i] == '(': lst.append(1) elif arrangement[i] == ')': answer += lst.pop() elif arrangement[i] == 'x': answer += lst.count(1) return answerColored by Color Scriptercs 포인트 : append, pop 즉 스택을 이용한 쇠막대기의 구현

2019. 1. 24. 00:43
Programing/C

구조체와 클래스의 차이점

구조체는 함수를 멤버로 가지지못한다. 클래스는 함수를 멤버로 가질수 있다. 디폴트 접근제어자에서 차이가 있다. 구조체는 public 클래스는 private C#에서 클래스는 참조타입이고 구조체는 값을 전달받는 타입이다.

2016. 6. 18. 04:46
Programing/C

[C언어] 연산자 / 연산자 우선순위

- 대입 연산자, 산술 연산자 연산자 의미 결합성 = 대입 - 뺄셈 -> * 곱셈 -> / 나눗셈 -> % 나머지 -> -증가 연산자, 감소 연산자 연산자 의미 결합성 ++a 선 증가, 후 연산 a a>=b a가 b보다 크거나 같은가 -> -논리연산자 연산자 연산의 예 의미 결합성 && (논리 곱) [AND] 1*1 = 1(ture)1*0 = 0(false)0*1 = 0(false)0*0 = 0(false) ture면 ture를 리턴 -> ||(논리 합) [OR] 1+1 = 1(ture)1+0 = 1(ture)0+1 = 1(ture)0+0 = 0(false) 하나라도 ture면 ture를 리턴 -> ! (논리 부정) [NOT] a = 0&&1 // = 0(false)printf("%d",!a);>> 1(..

2016. 5. 11. 21:19
Programing/C

C# packet capture

art_Form.cs using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Text;using System.Windows.Forms;using System.Net.Sockets;using System.Net; namespace WindowsFormsApplication{ public enum Protocol { TCP = 6, UDP = 17, Unknown = -1 }; public partial class art_Form : System.Windows.Forms.Form { private Socket mainSocket; //The..

2015. 12. 2. 18:30
Programing/Python

Python Portscaner

import optparsefrom socket import *from threading import Thread # Make a Connectiondef ConnScan(Target_Host, Target_Port): # ConnScan이라는 함수명을 가지고있고 타겟 호스트와 포트번호를 인자로 받는다. try: # 예외처리 connskt = socket(AF_INET, SOCK_STREAM) # connskt라는 변수에 소켓객체를 초기화시킨다. connskt.connect((Target_Host, Target_Port)) # connect메서드를 통해 타겟 host port가 전달된다. connskt.send('Vionlent python\r\n') # 패킷테스트메시지? result = connskt...

2015. 10. 20. 23:23
  • «
  • 1
  • ···
  • 4
  • 5
  • 6
  • 7
  • »

공지사항

전체 카테고리

  • All (102)
    • network (14)
    • ARM (2)
    • Programing (41)
      • C (3)
      • Assemble (0)
      • Python (8)
      • JavaScript (1)
      • Systemprograming (0)
      • 자료구조, Algorithm (20)
      • Web (4)
      • Git (2)
      • DataBase (1)
      • 운영, 배포, 관리 (2)
    • OS (4)
      • Window (0)
      • Linux (1)
      • theory (3)
    • etc, (3)
    • Hacking (18)
      • System technique (3)
      • Web technique (6)
      • Reversing (9)
    • wargame (11)
    • project (5)
      • android (2)
      • Automated vulnerability (0)
      • Vulnerability analysis (1)
      • Malware Analysis (0)
      • Code Virtualized (1)
    • school.study (1)
애드센스 광고 영역

블로그 인기글

Powered by Privatenote Copyright © Not null All rights reserved. TistoryWhaleSkin3.4

티스토리툴바