diff --git a/GESP/20231202.cpp b/GESP/20231202.cpp index ff2d4e0..8f025d0 100644 --- a/GESP/20231202.cpp +++ b/GESP/20231202.cpp @@ -20,7 +20,7 @@ int main() { cin >> e; // 第二个单位 if (b[0] == 'k') { - if (e.size() == 1) + if (e.size() == 1) // m , mm; g,mg; cout << a << " " << b << " = " << a * 1000 << e << endl; else cout << a << " " << b << " = " << a * 1000000 << e << endl; diff --git a/GESP/GESP九月三级C++真题.pdf b/GESP/GESP九月三级C++真题.pdf index b97ed7f..dbfa43c 100644 Binary files a/GESP/GESP九月三级C++真题.pdf and b/GESP/GESP九月三级C++真题.pdf differ diff --git a/GESP/Test.cpp b/GESP/Test.cpp index a898627..bb100b6 100644 --- a/GESP/Test.cpp +++ b/GESP/Test.cpp @@ -1,21 +1,11 @@ #include using namespace std; -int a[1010]; + int main() { - int n; - int cnt = 0; - cin >> n; - for (int i = 1; i <= n; i++) { - cin >> a[i]; + for (int a = INT_MIN; a <= INT_MAX; a++) { + if (a * 2 / 2 != a) + cout << a << endl; } - for (int i = 1; i <= n; i++) { - for (int j = i + 1; j <= n; j++) { - int x; - x = a[i] + a[j]; - if (sqrt(x) * sqrt(x) == x) - cnt += 1; - } - } - cout << cnt; + return 0; } \ No newline at end of file