이야기

  • 홈
  • 태그
  • 방명록

2025/03/14 2

백준 1929번(silver 3)

https://www.acmicpc.net/problem/1929에라토스테네스의 체를 사용하는 문제이다. #include #include #include using namespace std;int main() { cin.tie(0)->sync_with_stdio(false); int min, max; cin >> min >> max; int* arr = new int[max + 1]; arr[0] = 0, arr[1] = 0; for (int i = 2; i

백준 2025.03.14

백준 1541번 (silver 2)

https://www.acmicpc.net/problem/1541#include #include #include using namespace std;int main() { string mathExpression; cin >> mathExpression; std::vector v; int offset = 0; while (true) { int size = mathExpression.find('-', offset); if (size == string::npos) { v.push_back(mathExpression.substr(offset)); break; } v.push_back(mathExpression.substr(offset, size - offset)); offset = size ..

백준 2025.03.14
이전
1
다음
더보기
프로필사진

이야기

  • 분류 전체보기 (84)
    • 백준 (35)
    • c++ (14)
    • c# (0)
    • 인공지능 (0)
    • project (0)
    • unity (0)
    • html & css (1)
    • 정보보안기사 (2)
    • Algorithm (7)
    • MMOServer (25)

Tag

크기,

최근글과 인기글

  • 최근글
  • 인기글

최근댓글

공지사항

페이스북 트위터 플러그인

  • Facebook
  • Twitter

Archives

Calendar

«   2025/03   »
일 월 화 수 목 금 토
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 31

방문자수Total

  • Today :
  • Yesterday :

Copyright © Kakao Corp. All rights reserved.

티스토리툴바