1 solutions

  • 0
    @ 2025-11-5 20:08:10

    Pascal :

    var n,i,sum:longint;
    begin
    	readln(n);sum:=0;
    	for i:=1 to n do
        	if (i mod 3 = 2)and(i mod 5= 3)and(i mod 7=2) then inc(sum);
        writeln(sum);
    end.
    
    • 1

    Information

    ID
    20045
    Time
    1000ms
    Memory
    128MiB
    Difficulty
    (None)
    Tags
    # Submissions
    0
    Accepted
    0
    Uploaded By