from bs4 import BeautifulSoup
import requests
import json
from time import sleep
solutions = [
    "https://judgeapi.u-aizu.ac.jp/reviews/3105440",
    "https://judgeapi.u-aizu.ac.jp/reviews/3105284",
    "https://judgeapi.u-aizu.ac.jp/reviews/3105224",
    "https://judgeapi.u-aizu.ac.jp/reviews/3105201",
    "https://judgeapi.u-aizu.ac.jp/reviews/3105153",
    "https://judgeapi.u-aizu.ac.jp/reviews/3104967",
    "https://judgeapi.u-aizu.ac.jp/reviews/3104911",
    "https://judgeapi.u-aizu.ac.jp/reviews/3104111",
    "https://judgeapi.u-aizu.ac.jp/reviews/3104066",
    "https://judgeapi.u-aizu.ac.jp/reviews/3104010",
    "https://judgeapi.u-aizu.ac.jp/reviews/3103980",
    "https://judgeapi.u-aizu.ac.jp/reviews/3103961",
    "https://judgeapi.u-aizu.ac.jp/reviews/3103929",
    "https://judgeapi.u-aizu.ac.jp/reviews/3103730",
    "https://judgeapi.u-aizu.ac.jp/reviews/3103634",
    "https://judgeapi.u-aizu.ac.jp/reviews/3102691",
    "https://judgeapi.u-aizu.ac.jp/reviews/3102659",
    "https://judgeapi.u-aizu.ac.jp/reviews/3102507",
    "https://judgeapi.u-aizu.ac.jp/reviews/3102391",
    "https://judgeapi.u-aizu.ac.jp/reviews/3102272",
    "https://judgeapi.u-aizu.ac.jp/reviews/3102233",
    "https://judgeapi.u-aizu.ac.jp/reviews/3102038",
    "https://judgeapi.u-aizu.ac.jp/reviews/3102020",
    "https://judgeapi.u-aizu.ac.jp/reviews/3101982",
    "https://judgeapi.u-aizu.ac.jp/reviews/3101967",
    "https://judgeapi.u-aizu.ac.jp/reviews/3101025",
    "https://judgeapi.u-aizu.ac.jp/reviews/3100979",
    "https://judgeapi.u-aizu.ac.jp/reviews/3100939",
    "https://judgeapi.u-aizu.ac.jp/reviews/3100681",
    "https://judgeapi.u-aizu.ac.jp/reviews/3100572",
    "https://judgeapi.u-aizu.ac.jp/reviews/3099779",
    "https://judgeapi.u-aizu.ac.jp/reviews/3099607",
    "https://judgeapi.u-aizu.ac.jp/reviews/3099239",
    "https://judgeapi.u-aizu.ac.jp/reviews/3099206",
    "https://judgeapi.u-aizu.ac.jp/reviews/3098148",
    "https://judgeapi.u-aizu.ac.jp/reviews/3094044",
    "https://judgeapi.u-aizu.ac.jp/reviews/3093959",
    "https://judgeapi.u-aizu.ac.jp/reviews/3093922",
    "https://judgeapi.u-aizu.ac.jp/reviews/3093901",
    "https://judgeapi.u-aizu.ac.jp/reviews/3093335",
    "https://judgeapi.u-aizu.ac.jp/reviews/3093289",
    "https://judgeapi.u-aizu.ac.jp/reviews/3093131",
    "https://judgeapi.u-aizu.ac.jp/reviews/3092991",
    "https://judgeapi.u-aizu.ac.jp/reviews/3092939",
    "https://judgeapi.u-aizu.ac.jp/reviews/3092907",
    "https://judgeapi.u-aizu.ac.jp/reviews/3092861",
    "https://judgeapi.u-aizu.ac.jp/reviews/3092712",
    "https://judgeapi.u-aizu.ac.jp/reviews/3092680",
    "https://judgeapi.u-aizu.ac.jp/reviews/3092595",
    "https://judgeapi.u-aizu.ac.jp/reviews/3092564",
    "https://judgeapi.u-aizu.ac.jp/reviews/3091522",
    "https://judgeapi.u-aizu.ac.jp/reviews/3091473",
    "https://judgeapi.u-aizu.ac.jp/reviews/3091444",
    "https://judgeapi.u-aizu.ac.jp/reviews/3091415",
    "https://judgeapi.u-aizu.ac.jp/reviews/3088893",
    "https://judgeapi.u-aizu.ac.jp/reviews/3088887",
    "https://judgeapi.u-aizu.ac.jp/reviews/3088850",
    "https://judgeapi.u-aizu.ac.jp/reviews/3088841",
    "https://judgeapi.u-aizu.ac.jp/reviews/3088707",
    "https://judgeapi.u-aizu.ac.jp/reviews/3088080",
    "https://judgeapi.u-aizu.ac.jp/reviews/3087449",
    "https://judgeapi.u-aizu.ac.jp/reviews/3087386",
    "https://judgeapi.u-aizu.ac.jp/reviews/3087209",
    "https://judgeapi.u-aizu.ac.jp/reviews/3087182",
    "https://judgeapi.u-aizu.ac.jp/reviews/3087147",
    "https://judgeapi.u-aizu.ac.jp/reviews/3084913",
    "https://judgeapi.u-aizu.ac.jp/reviews/3084837",
    "https://judgeapi.u-aizu.ac.jp/reviews/3084796",
    "https://judgeapi.u-aizu.ac.jp/reviews/3084569",
    "https://judgeapi.u-aizu.ac.jp/reviews/3084524",
    "https://judgeapi.u-aizu.ac.jp/reviews/3084353",
    "https://judgeapi.u-aizu.ac.jp/reviews/3084245",
    "https://judgeapi.u-aizu.ac.jp/reviews/3084209",
    "https://judgeapi.u-aizu.ac.jp/reviews/3084181",
    "https://judgeapi.u-aizu.ac.jp/reviews/3084099",
    "https://judgeapi.u-aizu.ac.jp/reviews/3084051",
    "https://judgeapi.u-aizu.ac.jp/reviews/3083979",
    "https://judgeapi.u-aizu.ac.jp/reviews/3082844",
    "https://judgeapi.u-aizu.ac.jp/reviews/3082788",
    "https://judgeapi.u-aizu.ac.jp/reviews/3082736",
    "https://judgeapi.u-aizu.ac.jp/reviews/3082497",
    "https://judgeapi.u-aizu.ac.jp/reviews/3082339",
    "https://judgeapi.u-aizu.ac.jp/reviews/3082320",
    "https://judgeapi.u-aizu.ac.jp/reviews/3081720",
    "https://judgeapi.u-aizu.ac.jp/reviews/3081515",
    "https://judgeapi.u-aizu.ac.jp/reviews/3081480",
    "https://judgeapi.u-aizu.ac.jp/reviews/3081446",
    "https://judgeapi.u-aizu.ac.jp/reviews/3076724",
    "https://judgeapi.u-aizu.ac.jp/reviews/3076661",
    "https://judgeapi.u-aizu.ac.jp/reviews/3076641",
    "https://judgeapi.u-aizu.ac.jp/reviews/3076623",
    "https://judgeapi.u-aizu.ac.jp/reviews/3076366",
    "https://judgeapi.u-aizu.ac.jp/reviews/3076313",
    "https://judgeapi.u-aizu.ac.jp/reviews/3076260",
    "https://judgeapi.u-aizu.ac.jp/reviews/3076200",
    "https://judgeapi.u-aizu.ac.jp/reviews/3076178",
    "https://judgeapi.u-aizu.ac.jp/reviews/3076149",
    "https://judgeapi.u-aizu.ac.jp/reviews/3076138",
    "https://judgeapi.u-aizu.ac.jp/reviews/3076106",
    "https://judgeapi.u-aizu.ac.jp/reviews/3076051",
    "https://judgeapi.u-aizu.ac.jp/reviews/3076017",
    "https://judgeapi.u-aizu.ac.jp/reviews/2996933",
    "https://judgeapi.u-aizu.ac.jp/reviews/2996604",
    "https://judgeapi.u-aizu.ac.jp/reviews/2996563",
    "https://judgeapi.u-aizu.ac.jp/reviews/2996478",
    "https://judgeapi.u-aizu.ac.jp/reviews/2996235",
    "https://judgeapi.u-aizu.ac.jp/reviews/2992994",
    "https://judgeapi.u-aizu.ac.jp/reviews/2992931",
    "https://judgeapi.u-aizu.ac.jp/reviews/2992902",
    "https://judgeapi.u-aizu.ac.jp/reviews/2992854",
    "https://judgeapi.u-aizu.ac.jp/reviews/2992840",
    "https://judgeapi.u-aizu.ac.jp/reviews/2989267",
    "https://judgeapi.u-aizu.ac.jp/reviews/2989248",
    "https://judgeapi.u-aizu.ac.jp/reviews/2989215",
    "https://judgeapi.u-aizu.ac.jp/reviews/2989195",
    "https://judgeapi.u-aizu.ac.jp/reviews/2989160",
    "https://judgeapi.u-aizu.ac.jp/reviews/2988353",
    "https://judgeapi.u-aizu.ac.jp/reviews/2988298",
    "https://judgeapi.u-aizu.ac.jp/reviews/2976329",
    "https://judgeapi.u-aizu.ac.jp/reviews/2976288",
    "https://judgeapi.u-aizu.ac.jp/reviews/2976112",
    "https://judgeapi.u-aizu.ac.jp/reviews/2976105",
    "https://judgeapi.u-aizu.ac.jp/reviews/2976101",
    "https://judgeapi.u-aizu.ac.jp/reviews/2976089",
    "https://judgeapi.u-aizu.ac.jp/reviews/2975904",
    "https://judgeapi.u-aizu.ac.jp/reviews/2975827",
    "https://judgeapi.u-aizu.ac.jp/reviews/2975811",
    "https://judgeapi.u-aizu.ac.jp/reviews/2975794",
    "https://judgeapi.u-aizu.ac.jp/reviews/2975748",
    "https://judgeapi.u-aizu.ac.jp/reviews/2965043",
    "https://judgeapi.u-aizu.ac.jp/reviews/2965040",
    "https://judgeapi.u-aizu.ac.jp/reviews/2961791",
    "https://judgeapi.u-aizu.ac.jp/reviews/2961773",
    "https://judgeapi.u-aizu.ac.jp/reviews/2961753",
    "https://judgeapi.u-aizu.ac.jp/reviews/2961745",
    "https://judgeapi.u-aizu.ac.jp/reviews/2961708",
    "https://judgeapi.u-aizu.ac.jp/reviews/2961681",
    "https://judgeapi.u-aizu.ac.jp/reviews/2961677",
    "https://judgeapi.u-aizu.ac.jp/reviews/2961652",
    "https://judgeapi.u-aizu.ac.jp/reviews/2961642",
    "https://judgeapi.u-aizu.ac.jp/reviews/2953577",
    "https://judgeapi.u-aizu.ac.jp/reviews/2953570",
    "https://judgeapi.u-aizu.ac.jp/reviews/2953288",
    "https://judgeapi.u-aizu.ac.jp/reviews/2953284",
    "https://judgeapi.u-aizu.ac.jp/reviews/2953259",
    "https://judgeapi.u-aizu.ac.jp/reviews/2953243",
    "https://judgeapi.u-aizu.ac.jp/reviews/2953064",
    "https://judgeapi.u-aizu.ac.jp/reviews/2953040",
    "https://judgeapi.u-aizu.ac.jp/reviews/2952935",
    "https://judgeapi.u-aizu.ac.jp/reviews/2951871",
    "https://judgeapi.u-aizu.ac.jp/reviews/2951809",
    "https://judgeapi.u-aizu.ac.jp/reviews/2951696",
    "https://judgeapi.u-aizu.ac.jp/reviews/2951671",
    "https://judgeapi.u-aizu.ac.jp/reviews/2951509",
    "https://judgeapi.u-aizu.ac.jp/reviews/2951431",
    "https://judgeapi.u-aizu.ac.jp/reviews/2951384",
    "https://judgeapi.u-aizu.ac.jp/reviews/2951364",
    "https://judgeapi.u-aizu.ac.jp/reviews/2951328",
    "https://judgeapi.u-aizu.ac.jp/reviews/2942835",
    "https://judgeapi.u-aizu.ac.jp/reviews/2942830",
    "https://judgeapi.u-aizu.ac.jp/reviews/2942743",
    "https://judgeapi.u-aizu.ac.jp/reviews/2942667",
    "https://judgeapi.u-aizu.ac.jp/reviews/2941972",
    "https://judgeapi.u-aizu.ac.jp/reviews/2940244",
    "https://judgeapi.u-aizu.ac.jp/reviews/2939820",
    "https://judgeapi.u-aizu.ac.jp/reviews/2938542",
    "https://judgeapi.u-aizu.ac.jp/reviews/2929059",
    "https://judgeapi.u-aizu.ac.jp/reviews/2927910",
    "https://judgeapi.u-aizu.ac.jp/reviews/2917507",
    "https://judgeapi.u-aizu.ac.jp/reviews/2917407",
    "https://judgeapi.u-aizu.ac.jp/reviews/2917286",
    "https://judgeapi.u-aizu.ac.jp/reviews/2917205",
    "https://judgeapi.u-aizu.ac.jp/reviews/2916358",
    "https://judgeapi.u-aizu.ac.jp/reviews/2916336",
    "https://judgeapi.u-aizu.ac.jp/reviews/2914760",
    "https://judgeapi.u-aizu.ac.jp/reviews/2913670",
    "https://judgeapi.u-aizu.ac.jp/reviews/2913663",
    "https://judgeapi.u-aizu.ac.jp/reviews/2913585",
    "https://judgeapi.u-aizu.ac.jp/reviews/2913554",
    "https://judgeapi.u-aizu.ac.jp/reviews/2913337",
    "https://judgeapi.u-aizu.ac.jp/reviews/2912101",
    "https://judgeapi.u-aizu.ac.jp/reviews/2912031",
    "https://judgeapi.u-aizu.ac.jp/reviews/2911141",
    "https://judgeapi.u-aizu.ac.jp/reviews/2910923",
    "https://judgeapi.u-aizu.ac.jp/reviews/2910673",
    "https://judgeapi.u-aizu.ac.jp/reviews/2907051",
    "https://judgeapi.u-aizu.ac.jp/reviews/2906891",
    "https://judgeapi.u-aizu.ac.jp/reviews/2905793",
    "https://judgeapi.u-aizu.ac.jp/reviews/2905766",
    "https://judgeapi.u-aizu.ac.jp/reviews/2905739",
    "https://judgeapi.u-aizu.ac.jp/reviews/2905706",
    "https://judgeapi.u-aizu.ac.jp/reviews/2905635",
    "https://judgeapi.u-aizu.ac.jp/reviews/2905518",
    "https://judgeapi.u-aizu.ac.jp/reviews/2904419",
    "https://judgeapi.u-aizu.ac.jp/reviews/2904251",
    "https://judgeapi.u-aizu.ac.jp/reviews/2904203",
    "https://judgeapi.u-aizu.ac.jp/reviews/2878066",
    "https://judgeapi.u-aizu.ac.jp/reviews/2878016",
    "https://judgeapi.u-aizu.ac.jp/reviews/2861243",
    "https://judgeapi.u-aizu.ac.jp/reviews/2861185",
    "https://judgeapi.u-aizu.ac.jp/reviews/2860788",
    "https://judgeapi.u-aizu.ac.jp/reviews/2860563",
    "https://judgeapi.u-aizu.ac.jp/reviews/2860468",
    "https://judgeapi.u-aizu.ac.jp/reviews/2860423",
    "https://judgeapi.u-aizu.ac.jp/reviews/2860302",
    "https://judgeapi.u-aizu.ac.jp/reviews/2860121",
    "https://judgeapi.u-aizu.ac.jp/reviews/2860094",
    "https://judgeapi.u-aizu.ac.jp/reviews/2860037",
    "https://judgeapi.u-aizu.ac.jp/reviews/2860012",
    "https://judgeapi.u-aizu.ac.jp/reviews/2859949",
    "https://judgeapi.u-aizu.ac.jp/reviews/2859839",
    "https://judgeapi.u-aizu.ac.jp/reviews/2859677",
    "https://judgeapi.u-aizu.ac.jp/reviews/2855596",
    "https://judgeapi.u-aizu.ac.jp/reviews/2855531",
    "https://judgeapi.u-aizu.ac.jp/reviews/2855442",
    "https://judgeapi.u-aizu.ac.jp/reviews/2855418",
    "https://judgeapi.u-aizu.ac.jp/reviews/2855197",
    "https://judgeapi.u-aizu.ac.jp/reviews/2855105",
    "https://judgeapi.u-aizu.ac.jp/reviews/2855023",
    "https://judgeapi.u-aizu.ac.jp/reviews/2854916",
    "https://judgeapi.u-aizu.ac.jp/reviews/2854895",
    "https://judgeapi.u-aizu.ac.jp/reviews/2854803",
    "https://judgeapi.u-aizu.ac.jp/reviews/2854730",
    "https://judgeapi.u-aizu.ac.jp/reviews/2854696",
    "https://judgeapi.u-aizu.ac.jp/reviews/2854668",
    "https://judgeapi.u-aizu.ac.jp/reviews/2854644",
    "https://judgeapi.u-aizu.ac.jp/reviews/2854633",
    "https://judgeapi.u-aizu.ac.jp/reviews/2854617",
    "https://judgeapi.u-aizu.ac.jp/reviews/2854599",
    "https://judgeapi.u-aizu.ac.jp/reviews/2854587",
    "https://judgeapi.u-aizu.ac.jp/reviews/2853633",
    "https://judgeapi.u-aizu.ac.jp/reviews/2853554",
    "https://judgeapi.u-aizu.ac.jp/reviews/2853487",
    "https://judgeapi.u-aizu.ac.jp/reviews/2853464",
    "https://judgeapi.u-aizu.ac.jp/reviews/2853435",
    "https://judgeapi.u-aizu.ac.jp/reviews/2853432",
    "https://judgeapi.u-aizu.ac.jp/reviews/2853427",
    "https://judgeapi.u-aizu.ac.jp/reviews/2853415",
    "https://judgeapi.u-aizu.ac.jp/reviews/2853403",
    "https://judgeapi.u-aizu.ac.jp/reviews/2853385",
    "https://judgeapi.u-aizu.ac.jp/reviews/2853376",
    "https://judgeapi.u-aizu.ac.jp/reviews/2853368",
    "https://judgeapi.u-aizu.ac.jp/reviews/2853355",
    "https://judgeapi.u-aizu.ac.jp/reviews/2853354",
    "https://judgeapi.u-aizu.ac.jp/reviews/2853338",
    "https://judgeapi.u-aizu.ac.jp/reviews/2853335",
    "https://judgeapi.u-aizu.ac.jp/reviews/2853334",
    "https://judgeapi.u-aizu.ac.jp/reviews/2853330",
    "https://judgeapi.u-aizu.ac.jp/reviews/2853306",
    "https://judgeapi.u-aizu.ac.jp/reviews/2853303",
    "https://judgeapi.u-aizu.ac.jp/reviews/2853294"
]
for i, solution in enumerate(solutions):
    sleep(3)
    r = requests.get(solution)
    f = open("./" + str(i) + ".txt", "w")
    f.write(r.text)
    f.close()

