K
Khách

Hãy nhập câu hỏi của bạn vào đây, nếu là tài khoản VIP, bạn sẽ được ưu tiên trả lời.

uses crt;

var i,n,t,j,kt:integer;

begin

clrscr;

readln(n);

t:=0;

for i:=2 to n do

if n mod i=0 then

begin

kt:=0;

for j:=2 to trunc(sqrt(i)) do

if i mod j=0 then kt:=1;

if kt=0 then t:=t+i;

end;

write(t);

readln;

end.

29 tháng 8 2023

cảm ơn bn đã giúp mik nhiều bn thông cảm

uses crt;

var a,b,l,r,i,dem:integer;

begin

clrscr;

readln(a,b,l,r);

dem:=0;

for i:=l to r do

if (i mod a=0) and (i mod b=0) then inc(dem);

write(dem);

readln;

end.

30 tháng 8 2023

var a,b,dem,L,i,R:longint;

begin

readln(a,b,L,R);

dem:=0;

for i:=L to R do

if (i mod a=0) and (i mod b=0) then inc(dem);

write(dem);

readln;

end.

uses crt;

var a,b,c,ln:integer;

begin

clrscr;

readln(a,b,c);

ln:=a;

if ln<=b then ln:=b;

if ln<=c then ln:=c;

write(ln);

readln;

end.

30 tháng 8 2023

var a,b,c,max:int64;

begin

readln(a,b,c);

max:=a;

if b=>max then max:=b;

if c=>max then max:=c;

write(max);

readln;

end.

29 tháng 8 2023
 program TimDoanConCoTongK; const MAX_N = 100; var a: array[1..MAX_N] of Integer; N, K: Integer; i, j, sum: Integer; begin // Nhập vào dãy số và K Write('Nhap vao so phan tu cua day: '); ReadLn(N); WriteLn('Nhap vao cac phan tu cua day:'); for i := 1 to N do begin Write('a[', i, '] = '); ReadLn(a[i]); end; Write('Nhap vao gia tri K: '); ReadLn(K); // Tìm các đoạn con có tổng bằng K WriteLn('Cac doan con co tong bang ', K, ':'); for i := 1 to N do begin sum := 0; for j := i to N do begin sum := sum + a[j]; if sum = K then begin for k := i to j do begin Write(a[k], ' '); end; WriteLn; end; end; end; end.

Chương trình trên cho phép người dùng nhập vào dãy số và giá trị K. Sau đó, chương trình sẽ tìm tất cả các đoạn con trong dãy có tổng bằng K và in chúng ra màn hình.

Ví dụ, với dãy số [1, 2, 3, 4, 5] và K = 7, chương trình sẽ in ra:

 2 3 4 5 2

Đây là tất cả các đoạn con có tổng bằng 7 trong dãy số đã cho.

28 tháng 8 2023

Xin link

#include <bits/stdc++.h>

using namespace std;

int main()

{

double n;

cin>>n;

cout<<round(n);

}

28 tháng 8 2023

#include<bits/stdc++.h>
#define ll long long
#define fi first
#define se second
#define all(a) a.begin(),a.end()
#define ii pair<ll,ll>
#define foru(i,a,b) for(i=a;i<=b;i++)
#define ford(i,a,b) for(i=a;i>=b;i--)
using namespace std;
string s;
int main()
{
    cin>>s;
    for(int i=0;i<s.size();i++)
    {
        if(s[i]=='.')
            return 0;
        else
            cout<<s[i];
    }
    return 0;
}

22 tháng 8 2023

Để đọc thư truyền thống, bạn cần mở bức thư và đọc nội dung được viết trên giấy. Thư truyền thống thường được gửi qua bưu điện hoặc trao tay. Còn để đọc thư điện tử, bạn cần truy cập vào hộp thư điện tử của mình thông qua một thiết bị có kết nối internet. Sau đó, bạn có thể đọc nội dung thư và xem các tệp đính kèm nếu có. Thư điện tử thường được gửi và nhận qua email hoặc các ứng dụng liên quan.

21 tháng 8 2023

đem ra tiệm chạy lại phần mềm đi bạn

trường hợp này hết cíu ròi

24 tháng 8 2023

Bạn ấn nút Nguồn bên góc bên phải màn hình , sau đó giữ phím SHIFT rồi ấn vào nút RESTART.

Rồi bạn chờ đến khi ra hình này:

rồi ấn vào Start-up Settings

sau đó bạn chọn RESTART.

Sau khi máy tính khởi động xong, trên màn hình bạn sẽ nhìn thấy tùy chọn Safe Mode. Nhấn phím F4 hoặc phím 4 để khởi động Windows 10 ở chế độ Safe Mode.

rồi bạn sẽ vô dược safe mode

sau khi vào đc safe mode r, bạn hãy restart lại máy để login bth.

Link tham khảo: https://hacom.vn/cach-vao-safe-mode-tren-windows-10

20 tháng 8 2023

Làm bằng pascal nha

 

Nowadays all circuses in Berland have a round arena with diameter 13 meters, but in the past things were different. In Ancient Berland arenas in circuses were shaped as a regular (equiangular) polygon, the size and the number of angles could vary from one circus to another. In each corner of the arena there was a special pillar, and the rope strung between the pillars marked the arena edges. Recently the scientists from Berland have discovered the remains of the ancient circus arena. They found...
Đọc tiếp

Nowadays all circuses in Berland have a round arena with diameter 13 meters, but in the past things were different. In Ancient Berland arenas in circuses were shaped as a regular (equiangular) polygon, the size and the number of angles could vary from one circus to another. In each corner of the arena there was a special pillar, and the rope strung between the pillars marked the arena edges. Recently the scientists from Berland have discovered the remains of the ancient circus arena. They found only three pillars, the others were destroyed by the time. You are given the coordinates of these three pillars. Find out what is the smallest area that the arena could have.

Input

The input file consists of three lines, each of them contains a pair of numbers  coordinates of the pillar. Any coordinate doesn't exceed 1000 by absolute value, and is given with at most six digits after decimal point.

Output

Output the smallest possible area of the ancient arena. This number should be accurate to at least 6 digits after the decimal point. It's guaranteed that the number of angles in the optimal polygon is not larger than 100.

Input :

0.000000 0.000000 1.000000 1.000000 0.000000 1.000000

Output :

1.00000000

0