1 条题解

  • 0
    @ 2025-4-12 21:33:53

    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

    信息

    ID
    600
    时间
    1000ms
    内存
    128MiB
    难度
    (无)
    标签
    递交数
    0
    已通过
    0
    上传者