Run ID:119112

提交时间:2025-05-15 20:04:15

#include <stdio.h> int main() { int n; scanf("%d", &n); int peaches = 1; // 第n天剩下的桃子数 // 从第n天倒推回第1天 for (int i = n - 1; i >= 1; i--) { peaches = (peaches + 1) * 2; } printf("%d\n", peaches); return 0; }