Please turn JavaScript on
Latest LCOJ Comments icon

Latest LCOJ Comments

Want to stay in touch with the latest updates from Latest LCOJ Comments? That's easy! Just subscribe clicking the Follow button below, choose topics or keywords for filtering if you want to, and we send the news to your inbox, to your phone via push notifications or we put them on your personal page here on follow.it.

Reading your RSS feed has never been easier!

Website title: Trang chủ - LCOJ: Luyencode Online Judge

Is this your feed? Claim it!

Publisher:  Unclaimed!
Message frequency:  2.07 / day

Message History

include include include

using namespace std;

// Hàm sàng lọc các số nguyên tố chuẩn xác từ 2 đến n vector sangnguyento(int n) { vector check(n + 1, true); vector primes; if (n >= 2) { check[0] = check[1] = false; // Sửa lại dòng lỗi cú pháp ở đây for (int i = 2; i * i <= n; i++) { if (check[i]) { for (int j = i * i; j <= n; j += i) { ch...


Read full story

bài này là bài tìm số lớn số bé ở lớp 3!


Read full story
include

using namespace std;

int main() { int t, n; cin >> t; while (t--) { cin >> n; if (n % 2 == 0) { while (n % 2 == 0) n /= 2; cout << n << endl; } else { int i; for (i = 3; i * i <= n; i += 2) if (n % i == 0) break; if (i * i > n) cout << 1 << endl; else cout << n / i << endl; } } return 0; }...


Read full story
include define ll long long

using namespace std; ll n,a[1000011],F[1000011],res=LLONGMAX,s=0; int main() { iosbase::syncwithstdio(false); cin.tie(NULL); cin>>n; for(ll i=1;i<=n;i++){ cin>>a[i]; F[i]=F[i-1]+a[i]; s+=a[i]; } for(ll i=1;i<=n;i++){ ll sl=F[i]; ll sr=s-sl; res=min(res,abs(sl-s_r)); } cout<


Read full story

1+1=1 bi ngu


Read full story