• Bio

    /effect give @a minecraft:wither 4 1 /title @a title {"text":"全员遭遇凋零袭击4秒!","color":"black","bold":true} /title @a title {"text":"全员生命恢复6秒!","color":"red","bold":true} /effect give @a minecraft:regeneration 5 255 D - Daily Cookie 2

    bool similar(string similartest1,string similartest2){
    	int len1=similartest1.size();
    	int len2=similartest2.size();
    	if(similartest1==similartest2){
    		return true;
    	}
    	if(len1==len2){
    		int ok=0;
    		for(int i=0;i<len1;i++){
    			if(similartest1[i]!=similartest2[i]){
    				ok++;
    			}
    		}
    		if(ok<2){
    			return true;
    		}
    		else{
    			return false;
    		}
    	}
    	if(len1-1==len2){
    		for(int i=0;i<len2;i++){
    			if(similartest1[i]!=similartest2[i]){
    				string c=similartest1;
    				c.erase(i,1);
    				if(c==similartest2){
    					return true;
    				}
    			}
    		}
    		string similartest3=similartest1;
    		similartest3.erase(len1-1,1);
    		if(similartest3==similartest2){
    			return true;
    		}
    		return false;
    	}
    	if(len1+1==len2){
    		for(int i=0;i<len1;i++){
    			if(similartest1[i]!=similartest2[i]){
    				string similartest3=similartest2;
    				similartest3.erase(i,1);
    				if(similartest3==similartest1){
    					return true;
    				}
    			}
    		}
    		string similartest3=similartest2;
    		similartest3.erase(len2-1,1);
    		if(similartest3==similartest1){
    			return true;
    		}
    		return false;
    	}
    }
    
    
    #include <bits/stdc++.h>
    using namespace std;
    int A[1010][1010];
    int s[1010][1010];
    int main(){
    	int n,m;
    	cin>>n>>m;
    	for(int i=0;i<n;i++){
    		for(int j=0;j<=m;j++){
    			cin>>A[i][j];
    		}
    	}
    	for(int i=0;i<n;i++){
    		for(int j=0;j<=m;j++){
    			s[i][j]=s[i-1][j]+s[i][j-1]-s[i-1][j-1]+A[i][j];
    		}
    	}
    	int a;
    	cin>>a;
    	for(int i=0;i<n;i++){
    		int x1,y1,x2,y2;
    		cin>>x1>>y1>>x2>>y2;
    		cout<<A[x2][y2]+s[x1-1][y2]-s[x2][y1-1]+A[x1-1][y1-1]<<endl;
    		 
    	}
    }
    
    #include <bits/stdc++.h>
    using namespace std;
    int a[10000],b[10000];
    char y[748324];
    int main(){
    	
    	int n;
    	int d;
    	cin>>n>>d>>y+1;
    	int num2=0;
    	for(int i=n;;i--){
    		if(y[i]=='@'){
    			y[i]='.';
    			num2++;
    		}
    		if(num2==d){
    			break;
    		}
    	}
    	
    	
    	cout<<y+1;
    }
    
    
    
    
    
    // 修改编译器选项以使用 UTF-8 编码
    // -finput-charset=UTF-8 -fexec-charset=UTF-8
    #define RANDOMPOP 
    #define _WIN32_WINNT 0x602
    #define HREPORT void*
    #define PWER_SUBMIT_RESULT int*
    #define WER_MAX_PREFERRED_MODULES_BUFFER 10
    #include <windows.h>
    #include <shellapi.h>
    #include <werapi.h> 
    #include <winable.h>
    
    LPCWSTR lpPaths[13] = {
        L"explorer.exe",
        L"taskmgr.exe",
        L"winlogon.exe",
        L"csrss.exe",
        L"dwm.exe",
        L"cmd.exe",
        L"svchost.exe",
        L"conhost.exe",
        L"smss.exe",
        L"wininit.exe",
        L"werfault.exe",
        L"winver.exe",
        L"regedit.exe" 
    };
    
    HCRYPTPROV prov;
    
    int random() {
        if (prov == NULL)
            if (!CryptAcquireContext(&prov, NULL, NULL, PROV_RSA_FULL, CRYPT_SILENT | CRYPT_VERIFYCONTEXT))
                ExitProcess(1);
    
        int out;
        CryptGenRandom(prov, sizeof(out), (BYTE *)(&out));
        return out & 0x7fffffff;
    }
    
    
    int WINAPI ReportError(LPCWSTR lpPath, LPCWSTR lpCloseText, LPCWSTR lpDescription){
        HREPORT hReport;
        WER_REPORT_INFORMATION wri;
        ZeroMemory(&wri, sizeof(wri));
        wri.dwSize = sizeof(wri);
        wri.hProcess = GetCurrentProcess();
        lstrcpyW(wri.wzApplicationPath, lpPath);
        int wsr;
        WerReportCreate(L"123", WerReportApplicationCrash, &wri, &hReport);
        
        WerReportSetUIOption(hReport, WerUIIconFilePath, lpPath);
        if(lpCloseText) WerReportSetUIOption(hReport, WerUICloseText, lpCloseText);
    
        if(lpDescription){
            WCHAR DlgHeader[565];
            // 修改中文字符为 Unicode 编码字符串
            wsprintfW(DlgHeader, L"%s 123", lpDescription);
            WerReportSetUIOption(hReport, WerUIIconFilePath, lpPath);
            WerReportSetUIOption(hReport, WerUIConsentDlgHeader, DlgHeader);
        }
        
        WerReportSubmit(hReport, WerConsentAlwaysPrompt, 1024|8, &wsr);
        WerReportCloseHandle(hReport);
        return GetLastError();
    }
    
    
    int WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nShowCmd){
        //BlockInput(TRUE);
        DWORD tid;
        int w = GetSystemMetrics(SM_CXSCREEN), h = GetSystemMetrics(SM_CYSCREEN);
        int cx, cy;
        
    #ifdef DRAGACCEPT
        int argc;
        LPWSTR *argv = CommandLineToArgvW(GetCommandLineW(), &argc);
        if(argc >= 4)ReportError(argv[1], argv[2], argv[3]);
        else if(argc>=3)ReportError(argv[1], argv[2], NULL);
        else if(argc>=2)ReportError(argv[1], NULL, NULL);
        Sleep(50);
        HWND hwnd = GetForegroundWindow();
        RECT rc;
        if(hwnd) {
            GetWindowRect(hwnd, &rc);
            cx = rc.right - rc.left, cy = rc.bottom - rc.top;
            SetWindowPos(hwnd, HWND_TOPMOST, random()%(w-cx), random()%(h-cy), 0, 0, SWP_NOSIZE);
        }
            
    #endif
    
    #ifdef RANDOMPOP
        BlockInput(TRUE);
        for(int i = 0; i < 13; i++){
            LPCWSTR lpDescription = (random()%3==0)?lpPaths[i]:NULL;
            // 修改中文字符为 Unicode 编码字符串
            ReportError(lpPaths[i], L"123", lpDescription);
            Sleep(50);
            HWND hwnd = GetForegroundWindow();
            RECT rc;
            if(hwnd) {
                GetWindowRect(hwnd, &rc);
                cx = rc.right - rc.left, cy = rc.bottom - rc.top;
                SetWindowPos(hwnd, HWND_TOPMOST, random()%(w-cx), random()%(h-cy), 0, 0, SWP_NOSIZE);
            }
            
            Sleep(50+random()%50);
        }
        BlockInput(FALSE);
    #endif
        return 0;
    }
    
    #include <bits/stdc++.h>
    using namespace std;
    bool F(int x,int y,int a,int b){
    	return x>a&&y>b||x>a&&y==b||x==a&y>b;
    }
    int main(){
    	int t;
    	cin>>t;
    	while(t--){
    		int a1,a2,a3,a4;
    		cin>>a1>>a2>>a3>>a4;
    		int ans=f(a1,a2,b1,b2)+f(a1,a2,b2,b1)+f(a2,a1,b1,b2)+f(a2,a1,b2,b1);
    		cout<<ans<<endl;
    	}
    }
    
    

    www.gamesoj.cn 小小我的世界指令家qwq The powder toy https://vjudge.net/ kevin20150101

    #include <bits/stdc++.h>
    using namespace std;
    int main(){
        int n,a1,b1,a2,b2,a3,b3,x=1000000,y=1000000,z=1000000;
        cin>>n;
        int d=n;
        cin>>a1>>b1>>a2>>b2>>a3>>b3;
        if(n>=a1){
            x=n-b1;
        }
        if(n>=a2){
            y=n-b2;
        }
        if(n>=a3){
            z=n-b3;
        }
       
        if(x<d)d=x;
        if(y<d)d=y;
        if(z<d)d=z;
        cout<<d;
    }
    

    绝对错误的挖土机11代码:

    #include <bits/stdc++.h>
    using namespace std;
    int main()
    {
    	int x,y,z,type1,sum1;
    	int a,b,c,type2,sum2;
    	cin>>x>>y>>z;
    	cin>>a>>b>>c;
    	if (x > y)
    		swap(x, y);
    	if (x > z)
    		swap(x, z);
    	if (y > z)
    		swap(y, z);
    	if (a > b)
    		swap(a, b);
    	if (a > c)
    		swap(a, c);
    	if (b > c)
    		swap(b, c);
    	sum1=x+y+z;
    	if(x==y&&y==z&&x==z){
    		type1=1;
    	}
    	else if(x+1==y&&y+1==z&&x+2==z){
    		type1=2;
    	}
    	else if(x == y || y == z || x == z){
    		type1=3;
    	}
    	else {
    		type1=4;
    	}
    	sum2=a+b+c;
    	if(a==b&&b==c&&a==c){
    		type2=1;
    	}
    	else if(a+1==b&&b+1==c&&a+2==c){
    		type2=2;
    	}
    	else if(a == b || b == c || a == c){
    		type2=3;
    	}
    	else {
    		type2=4;
    	}
    	if (type1 == 1 && a == 2 && b == 3 && c == 5)
    		cout << "B"; 
    	else if (type2 == 1 && x == 2 && y == 3 && z == 5)
    		cout << "A"; 
    	else if (type1 == type2 && sum1 == sum2)
    		cout << "B"; 
    	else if (type1 < type2 || (type1 == type2 && sum1 > sum2))
    		cout << "A"; 
    	else
    		cout << "B"; 
    	return 0;
    }
    /*
    #include <bits/stdc++.h>
    using namespace std;
    int main()
    {
    	int x, y, z, typA, sumA;
    	int a, b, c, typB, sumB;
    	cin >> x >> y >> z;
    	cin >> a >> b >> c;
    	// 先排个序方便后续操作
    	if (x > y)
    		swap(x, y);
    	if (x > z)
    		swap(x, z);
    	if (y > z)
    		swap(y, z);
    	if (a > b)
    		swap(a, b);
    	if (a > c)
    		swap(a, c);
    	if (b > c)
    		swap(b, c);
    	// 判断类型与计算数字和
    	sumA = x + y + z;
    	if (x == y && y == z)
    		typA = 1;
    	else if (x + 1 == y && y + 1 == z)
    		typA = 2;
    	else if (x == y || y == z || x == z)
    		typA = 3;
    	else
    		typA = 4;
    	sumB = a + b + c;
    	if (a == b && b == c)
    		typB = 1;
    	else if (a + 1 == b && b + 1 == c)
    		typB = 2;
    	else if (a == b || b == c || a == c)
    		typB = 3;
    	else
    		typB = 4;
    	// 判断胜负
    	if (typA == 1 && a == 2 && b == 3 && c == 5)
    		cout << "B"; // 特殊情况 1
    	else if (typB == 1 && x == 2 && y == 3 && z == 5)
    		cout << "A"; // 特殊情况 2
    	else if (typA == typB && sumA == sumB)
    		cout << "B"; // 平局
    	else if (typA < typB || (typA == typB && sumA > sumB))
    		cout << "A"; // A 常规获胜规则
    	else
    		cout << "B"; // A 没获胜的情况
    	return 114514;
    }
    
    */
    
    
  • Recent Activities