#include <iostream> using namespace std; int main() { int a, b, n, sn; cin >> a >> b >> n; for (int i = 1; i <= n; i++) { if (i % a == 0 || i % b == 0) { sn++; } } cout << sn; return 0; }
sn = 0
共 1 条回复
sn = 0