This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from multiprocessing import Pool | |
import os | |
import time | |
start = time.time() | |
def func(n, a1, a2): | |
time.sleep(0.1) | |
r = n * a1 + a2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.util.*; | |
import java.lang.reflect.*; | |
public class Main { | |
// ArrayList outside of main() | |
static ArrayList<String> list2 = new ArrayList<>(); | |
static{ | |
list2.add("Hige"); | |
list2.add("Hage"); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.util.*; | |
public class Main { | |
public enum Enum_sample{ | |
HAGE, | |
HIGE, | |
HOGE; | |
} | |
public static void main(String[] args) throws Exception { |