วุ้น (jelly) Author: Pakin Olanraktham View Problem Statement Source: PROGRAMMING.IN.TH Difficulty: ? Prerequisites: การเขียนโปรแกรมเบื้องต้น เฉลย CC++ #include <stdio.h> int main() { int a, b, c; scanf("%d %d %d", &a, &b, &c); int ans = 0; while (a!=1) {ans++; a/=2;} while (b!=1) {ans++; b/=2;} while (c!=1) {ans++; c/=2;} printf("%d", ans); } #include <iostream> using namespace std; int main() { int a, b, c; cin >> a >> b >> c; int ans = 0; while (a!=1) {ans++; a/=2;} while (b!=1) {ans++; b/=2;} while (c!=1) {ans++; c/=2;} cout << ans; }