Submission
Status:
PPPPPPPPPP
Subtask/Task Score:
100/100
Score: 100
User: Phoom1111
Problemset: ผลรวมตัวเลข
Language: cpp
Time: 0.002 second
Submitted On: 2026-05-20 21:44:20
#include <bits/stdc++.h>
using namespace std;
#define ll long long
int main(){
ll n,m,ans;
cin >> n >> m;
ans = 0;
for(int i = m;n < m;n++) {
if(n % 2 == 0|n % 3 == 0) {
ans = ans + n;
}
}
cout << ans;
return 0;
}