游客 Signup | Login
中文 | En

3069 - 被2,3同时整除的数

 1~100之间所有既能被2整除,又能被3整除的整数

Input

Output

Examples

Input

no input needed

Output

6
12
18
24
30
36
42
48
54
60
66
72
78
84
90
96

Solution C++

#include<bits/stdc++.h>
using namespace std;
int a,b;
int main()
{
	for(int i=6;i<=96;i+=6)
		cout<<i<<endl;
	return 0;
}
Time Limit 1 second
Memory Limit 128 MB
Discuss Stats
上一题 下一题