- 博客(9)
- 收藏
- 关注
原创 USACO 2.3 Money
/*ID: ***LANG: JAVATASK: money*/import java.io.*;import java.util.*;public class money { public static void main(String[] args) throws IOException { money m = new money(); m.run(); }...
2018-06-05 14:04:45 151
原创 USACO 2.3 Zerosum
/*ID: ***LANG: JAVATASK: zerosum*/import java.io.*;public class zerosum { public static int rcd = 0; public static String[] symbol = { " ", "+", "-" }; public static void main(String[] arg...
2018-06-05 11:41:04 205
原创 USACO 1.6 pprime Python3
"""ID: ***LANG: PYTHON3TASK: pprime"""fin = open('pprime.in', 'r')fout = open('pprime.out', 'w')lower_Limit, upper_Limit = map(int, fin.readline().split())maxL = len(str(upper_Limit))minL = l...
2018-05-24 14:33:01 274
原创 USACO 1.6 SuperPrime Rib Java
/*ID: ***LANG: JAVATASK: sprime*/import java.io.*;import java.util.*;public class sprime { public static Integer[] sprimes_list = {2, 3, 5, 7}; public static void main(String[] args) throws...
2018-05-24 14:30:27 196
原创 USACO 1.4 Wormholes Python3
"""ID: ***LANG: PYTHON3TASK: wormhole"""fin = open ('wormhole.in', 'r')fout = open ('wormhole.out', 'w')N = int(fin.readline())total_List = list()def checkPairings(listGenrt,crd): for i i...
2018-05-19 15:07:33 361
原创 USACO 1.4 Ski Course Design Python3
"""ID: ***LANG: PYTHON3TASK: skidesign"""import math as mfin = open('skidesign.in', 'r')fout = open('skidesign.out', 'w')N = int(fin.readline())costlist = list()hills = list()for x in rang...
2018-05-19 15:06:07 250
原创 USACO Python3 1.5 Arithmetic Progression
"""ID: ***LANG: PYTHON3TASK: ariprog"""import mathimport timestart_time = time.time()fin = open ('ariprog.in', 'r')fout = open ('ariprog.out', 'w')N = int(fin.readline())M = int(fin.readli...
2018-05-19 15:04:48 471
原创 USACO 1.4 Python3 Prime Cryptarithm
"""ID: ***LANG: PYTHON3TASK: crypt1"""fin = open ('crypt1.in', 'r')fout = open ('crypt1.out', 'w')N = int(fin.readline())numS = 0digits = list(map(int,fin.readline().split()))#print(digits)...
2018-05-19 15:02:27 233
原创 USACO Python3 1.4 milk3
"""ID: ***LANG: PYTHON3TASK: milk3"""fin = open('milk3.in', 'r')fout = open('milk3.out', 'w')Al, Bl, Cl = map(int, fin.readline().split())lims = [Al, Bl, Cl]# Stp always Crec = [[[False for...
2018-05-19 14:54:46 406 2
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人