3 条题解

  • 4
    @ 2024-1-29 18:41:44
    #include<bits/stdc++.h>
    using namespace std;
    int a[100][100];int main(){
    int n,x;
    cin >> n >> x;
    cout << n%x << endl;
    //so easy
    }
    
    • -2
      @ 2023-5-25 18:08:13

      输入 aabb,输出 amodba \mod b

      这么难的题,只能用 C++ 逝世了(因为有人发 Python 了)。

      #include<bits/stdc++.h>
      using namespace std;
      #define int long long//大家不要学,坏习惯/cf 
      int a,b;
      main(){
      	ios::sync_with_stdio(false);
      	cin.tie(0);
      	cout.tie(0);
      	cin>>a>>b;
      	cout<<a%b;
      	return 0;
      }
      
      • -2
        @ 2023-4-1 21:52:16
        a,b=map(int,input().split())
        print(a%b)
        
        • 1

        信息

        ID
        7
        时间
        1000ms
        内存
        256MiB
        难度
        1
        标签
        (无)
        递交数
        277
        已通过
        232
        上传者