lt23
Xem dạng PDF
Gửi bài giải
Điểm:
10,00 (OI)
Giới hạn thời gian:
1.0s
Giới hạn bộ nhớ:
98M
Input:
stdin
Output:
stdout
Tác giả:
Người đăng:
Dạng bài
Bài tập Lập trình sáng tạo
Bình luận
include<bits/stdc++.h>
using namespace std; int main(){ int a, b; cin>>a>>b; for(int x = a; x <= b; x++) { int e = x; while(e%2 == 0) e = e/2; while(e%3 == 0) e = e/3; if(e == 1) cout<<x<<endl; } }