Update: Rename folder name to XSMOJ

This commit is contained in:
2025-02-14 02:44:20 +00:00
parent 394e431a4a
commit c8863a5850
243 changed files with 11 additions and 39 deletions

27
XSMOJ/未命名1.cpp Normal file
View File

@ -0,0 +1,27 @@
#include <iostream>
#include <iomanip>
#include <cstring>
#include <cstdio>
#include <ctime>
#include <cmath>
long long a,b,c[1000000],d[1000000],e=0;
using namespace std;
int main(){
cin >>a>>b;
for(int i=0;i<a;i++){
cin >>c[i];
}
for(int i=0;i<a;i++){
cin >>d[i];
}
for(int i=0;i<a;i++){
e+=(d[i]-c[i]);
}
if(e<=0){
cout <<0;
}
if(e>0){
cout <<e*b;
}
return 0;
}