Notice
Recent Posts
Recent Comments
Link
반응형
목록1052 (1)
공부혜옹
백준 1052번 물병
#include #define endl "\n" using namespace std; int N, K, Answer; int Add_Water(int x) { int Cnt = 0; while (x > 0) { if (x % 2 == 1) { Cnt++; } x = x / 2; } return Cnt; } int main(void) { ios::sync_with_stdio(false); cin.tie(NULL); cout.tie(NULL); cin >> N >> K; if (N
공부합시다/Algorithm
2021. 7. 13. 21:56
반응형