기록

  • 홈
  • 태그
  • 방명록

백준 3

BOJ 2577 숫자의 개수 (C++)

#include using namespace std; int main() { int x,y,z; cin >> x >> y >> z; int t=x*y*z,ans[10]={0,0,0,0,0,0,0,0,0,0}; while(t!=0) { ans[t-(t/10)*10]++; t/=10; } for (int i=0;i

코딩/C++ 2021.08.01

BOJ 11720 숫자의합 (C++)

#include using namespace std; int main() { int n; int ans=0; for (scanf("%d",&n);n>0;n--) { int x; scanf("%1d",&x); ans+=x; } cout

코딩/C++ 2021.07.31

BOJ 1110 더하기 사이클 (C++)

그냥 써있는대로 하면끝 #include using namespace std; int main() { int n; cin >> n; int t=n,ans=0; while(1) { int tt,sum; if (t/10==0) tt=t*10; else tt=t; sum=tt/10+tt%10; t=(t%10)*10+sum%10; //printf("t%d tt%d sum%d\n",t,tt,sum); ans++; if (t==n) break; } cout

코딩/C++ 2021.07.31
이전
1
다음
더보기
프로필사진

기록

  • 분류 전체보기 (5)
    • 코딩 (5)
      • C++ (3)
      • Flutter (2)
    • 생명과학 (0)

Tag

mainAxisAlignment, 1110, BOJ, Flutter, android studio, row, C++, C, crossAxisAlignment, Widget, scaffold, 코딩, 백준, Column,

최근글과 인기글

  • 최근글
  • 인기글

최근댓글

공지사항

페이스북 트위터 플러그인

  • Facebook
  • Twitter

Archives

Calendar

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

티스토리툴바