1 条题解

  • 0
    @ 2025-9-10 0:12:02

    C :

    #include <stdio.h>
    
    int main(void) {
    	int a, b, c;
    	scanf("%d%d", &a, &b);
    	c = a - b;
    	printf("%d", c);
    	return 0;
    }
    
    

    C++ :

    #include<cstdio>
    using namespace std;
    int main()
    {
    	int a,b,s;
    	scanf("%d%d",&a,&b);
    	s=a-b;
    	printf("%d\n",s);
    	return 0;
    }
    

    Pascal :

    program yucong;
    var
    a,b,s:integer;
    begin
    read(a,b);
    s:=a-b;
    writeln(s);
    readln;
    end.
    
    • 1

    第一章:整数运算《练习1:整数减法》

    信息

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