mirror of
https://github.com/Arvanaghi/CheckPlease
synced 2026-06-08 10:25:16 +00:00
16 lines
246 B
Go
16 lines
246 B
Go
package main
|
|
|
|
import (
|
|
"fmt"
|
|
"strconv"
|
|
"os"
|
|
"runtime"
|
|
)
|
|
|
|
func main() {
|
|
num_procs := runtime.NumCPU()
|
|
minimum_processors_required, _ := strconv.Atoi(os.Args[1])
|
|
if num_procs >= minimum_processors_required {
|
|
fmt.Println("Proceed!")
|
|
}
|
|
} |