From 46f6899cadd0d1c5e35b6a3763c8e4a09a485462 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=BB=84=E6=B5=B7?= <10402852@qq.com> Date: Sun, 24 Mar 2024 09:59:39 +0800 Subject: [PATCH] 'commit' --- GESP/Test.cpp | 17 +++++------------ 1 file changed, 5 insertions(+), 12 deletions(-) diff --git a/GESP/Test.cpp b/GESP/Test.cpp index 1f79dc8..41c634d 100644 --- a/GESP/Test.cpp +++ b/GESP/Test.cpp @@ -1,18 +1,11 @@ #include using namespace std; - -int cnt; -bool isPrime(int x) { - for (int i = 2; i <= sqrt(x); i++) - if (x % i == 0) return false; - return true; -} int main() { - int n, m; - cin >> n >> m; - for (int i = n; i <= m; i++) - if (isPrime(i)) cnt++; - cout << cnt << endl; + int a = INT_MAX; + cout << a << endl; + cout << a * 2 << endl; + cout << (a << 1) << endl; + cout << (a << 1 >> 1) << endl; return 0; } \ No newline at end of file