Skip to content

Instantly share code, notes, and snippets.

@modos
Created December 7, 2024 08:58
Show Gist options
  • Save modos/5997de16f0495a7e285e380b0acedfbc to your computer and use it in GitHub Desktop.
Save modos/5997de16f0495a7e285e380b0acedfbc to your computer and use it in GitHub Desktop.
ساقه طلایی شکلاتی
n, x, k = map(int, input().split())
total_chocolate = (k - 1) * x if k > 1 else 0
print(total_chocolate)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment