1 solutions

  • 0
    @ 2025-11-5 20:05:45

    Pascal :

    var x:integer;
      begin
        readln(x);
        if x>0 then writeln(x+1)
           else if x=0 then writeln(0) else writeln(x-1);
      end.
    
    • 1

    20140120思考题:编程求解数学中的分段函数。

    Information

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