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
package my.ACm.Quera._26_sathe_2; | |
import java.util.HashMap; | |
import java.util.Scanner; | |
public class HaltProblem { | |
public static final int mod = 10*10*10*10*10*10*10*10*10 + 7; |
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
private static final String OBJECTIVEZONE_SHAPE = "# ", | |
OPP_RESPAWNZONE_SHAPE = "+' ", | |
MY_RESPAWNZONE_SHAPE = "+ ", | |
WALL_SHAPE = "/\\ ", | |
NORMAL_CELL = "-- "; | |
static void printMap(World world) { | |
Cell[][] cells = world.getMap().getCells(); | |
System.out.print(" "); | |
for (int i = 0; i < world.getMap().getColumnNum(); i++) { | |
String str = String.valueOf(i); |
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 ipaddress import IPv4Address | |
import json | |
from urllib3.poolmanager import PoolManager | |
base_url = 'http://ip-api.com/json/{query}?fields=status,country,countryCode' | |
http = PoolManager(num_pools=20) | |
def _ip_detail(ip: IPv4Address): |