4292021-11-03 13:19:51lalalaToronyépítés (1,1,3,3)python3Runtime error 0/5071ms17008 KiB

from multiprocessing import Process
import time
import os

def run(id):
	then = time.clock_gettime(time.CLOCK_THREAD_CPUTIME_ID)
	ans = 0
	for i in range(30000000):
		ans += i
	print(time.clock_gettime(time.CLOCK_THREAD_CPUTIME_ID))
	#os.system("time -v ./a.out 2> err{}".format(id))

threadcnt = 1
for i in range(threadcnt):
	thread = Process(target=run, args=(i,))
	thread.start()
SubtaskSumTestVerdictTimeMemory
base0/50
1Runtime error0/068ms16844 KiB
2Runtime error0/064ms16920 KiB
3Runtime error0/352ms16828 KiB
4Runtime error0/348ms16964 KiB
5Runtime error0/450ms16832 KiB
6Runtime error0/456ms17008 KiB
7Runtime error0/454ms16952 KiB
8Runtime error0/448ms16956 KiB
9Runtime error0/448ms16912 KiB
10Runtime error0/448ms16908 KiB
11Runtime error0/448ms16924 KiB
12Runtime error0/448ms16920 KiB
13Runtime error0/446ms16928 KiB
14Runtime error0/448ms16848 KiB
15Runtime error0/271ms16824 KiB
16Runtime error0/256ms16876 KiB