This commit is contained in:
2025-03-25 18:08:26 +08:00
parent e0f249d1d9
commit 79b6fbe7e3
5 changed files with 63 additions and 1 deletions

16
src/367.c Normal file
View File

@@ -0,0 +1,16 @@
//
// Created by xfj12 on 2025/3/25.
//
#include <solution/367.h>
#include <stdint.h>
bool isPerfectSquare(int num)
{
for (int64_t i = 1;; i++)
{
if (i * i > num)
return false;
if (i * i == num)
return true;
}
}