5 条题解

  • 1
    @ 2026-7-10 12:16:37

    #include<bits/stdc++.h> using namespace std; int main() { double a,b,ans; int k; scanf("%lf %lf",&a,&b); k=a/b; cout<<a-k*b; return 0; }

    • 1
      @ 2022-8-29 16:38:46
      #include<bits/stdc++.h>
      using namespace std;
      int main()
      {
      	double a,b,ans;
      	int k;
      	scanf("%lf %lf",&a,&b);
      	k=a/b;
      	cout<<a-k*b;
      	return 0;
      }
      
      • 0
        @ 2025-5-10 11:59:41
        #include<bits/stdc++.h>
        using namespace std;
        const int N=5e5+5,INF=0x3f3f3f3f;
        typedef long long LL;
        double a,b;
        int main()
        {
        	cin>>a>>b;
        	cout<<a-(int)(a/b)*b;
        	return 0;
        }
        
        • 0
          @ 2024-5-23 7:20:17

          #include<iostream using namespace std; int main() { double a,b; int k; cin>>a>>b; k=a/b; cout<<a-k*b; return 0; }

          • -1
            @ 2022-8-3 23:41:56
            #include<bits/stdc++.h>
            using namespace std;
            int main() {
            	double a,b;
            	int k;
            	cin>>a>>b;
            	k=a/b;
            	cout<<a-k*b;
            	return 0;
            }
            • 1

            信息

            ID
            833
            时间
            1000ms
            内存
            128MiB
            难度
            2
            标签
            递交数
            82
            已通过
            53
            上传者