본문 바로가기 메뉴 바로가기

코딩공부

프로필사진
  • 글쓰기
  • 관리
  • 태그
  • 방명록
  • RSS

코딩공부

검색하기 폼
  • 분류 전체보기 (6)
    • 알고리즘 (6)
    • C# (0)
  • 방명록

C++ (1)
C++ 백준 17204번 죽음의 게임

#include #include using namespace std; int main() { ios::sync_with_stdio(false); cin.tie(0); int N, K; int ans = 0; cin >> N >> K; vector a(N); for (int i = 0; i > a[i]; } int temp; vector vi(N); temp = a[0]; while (vi[temp] != true) { ans++; vi[temp] = true; if (temp == K) { cout

알고리즘 2022. 7. 12. 23:16
이전 1 다음
이전 다음
공지사항
최근에 올라온 글
최근에 달린 댓글
Total
Today
Yesterday
링크
TAG
  • WPF
  • C++
  • 알고리즘
  • c#
  • 백준
  • MVVM
  • radio button
more
«   2025/09   »
일 월 화 수 목 금 토
1 2 3 4 5 6
7 8 9 10 11 12 13
14 15 16 17 18 19 20
21 22 23 24 25 26 27
28 29 30
글 보관함

Blog is powered by Tistory / Designed by Tistory

티스토리툴바