正文
增加 44 行删除 56 行
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364```cpp/*by 1+1=3F3 结束程序同时按 Ctrl 和 Alt 暂停/启动*/#include<windows.h>#include<time.h>#include<bits/stdc++.h>#include<conio.h>using namespace std;const int Time=5;//Time 的值的计算公式 = 1000 / 每秒点击数int getMouse(int x){POINT pt;GetCursorPos(&pt);if(x==1) return pt.x;return pt.y;}void TopWindow(HWND &hWnd) {SetWindowPos(hWnd, HWND_TOPMOST, 0, 0, 0, 0, SWP_NOMOVE | SWP_NOSIZE);}bool pressed(){return GetAsyncKeyState(VK_CONTROL) & 0x8000 && GetAsyncKeyState(VK_MENU) & 0x8000;}bool _break(){return GetAsyncKeyState(VK_F3);}int main(){POINT p;GetCursorPos(&p);HWND hWnd=GetForegroundWindow();if (hWnd) {ShowWindow(hWnd, SW_HIDE);}bool flag=true;while(1){::mouse_event(MOUSEEVENTF_LEFTDOWN,p.x,p.y,0,0);::mouse_event(MOUSEEVENTF_LEFTUP,p.x,p.y,0,0);::Sleep(Time);while(flag){if(_break()){ShowWindow(hWnd, SW_SHOW);exit(0);}while(pressed()){// TopWindow(hWnd);flag=false;}// TopWindow(hWnd);}if(_break()){ShowWindow(hWnd, SW_SHOW);exit(0);}while(pressed()){// TopWindow(hWnd);flag=true;}// TopWindow(hWnd);}return 0;}```12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152```cpp#include<bits/stdc++.h>using namespace std;string s;int num[6];int cnt=0;int f(){if(s=="one"||s=="a"||s=="first"||s=="another") return 1;if(s=="two"||s=="both"||s=="second") return 2;if(s=="three"||s=="third") return 3;if(s=="four") return 4;if(s=="five") return 5;if(s=="six") return 6;if(s=="seven") return 7;if(s=="eight") return 8;if(s=="nine") return 9;if(s=="ten") return 10;if(s=="eleven") return 11;if(s=="twelve") return 12;if(s=="thirteen") return 13;if(s=="fourteen") return 14;if(s=="fifteen") return 15;if(s=="sixteen") return 16;if(s=="seventeen") return 17;if(s=="eighteen") return 18;if(s=="nineteen") return 19;if(s=="twenty") return 20;return -1;}int main(){for(int i=0;i<6;i++){cin>>s;if(s.back()=='.')s.pop_back();int val=f();if(val!=-1){num[cnt++]=(val*val)%100;}}if(cnt==0){cout<<0;return 0;}sort(num,num+cnt);cout<<num[0];for(int i=1;i<cnt;i++){if(num[i]<10)cout<<0;cout<<num[i];}return 0;}```