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:  6.27 / day

Message History

include <iostream>

using namespace std; int main() { int a,b,s; cin>>a>>b; s=a+b; cout<<s; return 0; }


Read full story
include <bits/stdc++.h> define ll long long

using namespace std; ll n,s=0,j; int main() { cin>>n; for(ll i=1;i<=sqrt(n);i++) { if(n%i==0) { s=s+i; {j=n/i; if(i!=j) {s+=j;} }} } cout <<s; return 0; }


Read full story
include <iostream> include <cmath>

using namespace std; bool ktra(long long x) { if (x < 2) return false; for (long long i = 2; i * i <= x; i++) { if (x % i == 0) { return false; } } return true; }

int main() { long long n; cin >> n; long long kq = 0; for (long long i = 2; i * i <= n; i++) { if (ktra(i)) { kq++; } }

c...

Read full story

thua thg ra đề


Read full story