Minhee Lee

    CodeForces 41

    [CF] Round 560 (Div.3) _ 210313

    Dashboard - Codeforces Round #560 (Div. 3) - Codeforces codeforces.com 학회 코포 스터디에서 버추얼을 돌았다 너무 오랜만의 코포/PS라서 어색했다 결과도 별로 좋지 않다 A. 편하게 생각할 수 있도록 string을 뒤집었다. 문자열 변수를 s라고 할 때 ans += s[0] ~ s[x-1] 중 1의 개수 s[x]가 0이면 ans++ ans += s[x+1] ~ s[y-1] 중 1의 개수 한 뒤 ans를 출력하면 된다 int main() { ios::sync_with_stdio(0); cin.tie(0); cout.tie(0); int n, y, x; cin >> n >> y >> x; string s; cin >> s; reverse(s.begin(..

    Programming 2021.03.13
    Previous
    1 2 3 4 5
    Next
    더보기
    프로필사진

    • All (346)
      • Experiences (42)
      • Programming (79)
      • Beauties (81)
      • Me (144)

    Tag

    미니책방, algo, Beyoutiful, PS, fabulous, 미니ingful, MINIngful, 특별한, sogang, 뮤지컬, 식사일기, cf, 서강, CS, boj, CodeForces, 컴공, 아름다워, sogangicpcteam, 대회,

    Copyright © Kakao Corp. All rights reserved.

    티스토리툴바