Submission

Status:

xxxxxxxxxx

Subtask/Task Score:

0/100

Score: 0

User: Joker

Problemset: ผลรวมตัวเลข

Language: cpp

Time: 0.000 second

Submitted On: 2026-05-19 08:39:50

#include <bits/stdc++.h>
using namespace std;
int  result=0;
int buag(int n,int m){
    for(int i=m;n<i;n++){
        
        if(n%2==0||n%3==0){result +=n;}
    }
    return result;
}

int main() {
	cin.tie(NULL);
	ios_base::sync_with_stdio(false);
	int n;
	int m;
	cin>>n>>m;
    cout<<buag(n,m);
    return true;
}