HDU 6033 - Add More Zero | 2017 Multi-University Training Contest 1
/* HDU 6033 - Add More Zero [ 简单公式 ] | 2017 Multi-University Training Contest 1 题意: 问 2^n-1 有几位 分析: 位数直接 log10 ,减一可忽略 */ #include <bits/stdc++.h> int t, m; int main() { t = 0; while (~scanf("%d", &m)) { int ans = m*log10(2); printf("Case #%d: %d\n", ++t, ans); } }
我自倾杯,君且随意