2019 IEEEXtreme 13.0インパクトファクターインパクトファクター

インパクトファクター

効果の対象に

名前が示すように、影響因子を求めています。n個の行がありjson、データの、商品情報の後ろの出版社のための定期的な情報の最初の行為は。

 

入力出力

詳細はこちら 输入:6 { "刊行物":[{ "publicationTitle": "IEEEXtreme上の文字"、 "publicationNumber": "1"、 "articleCounts":[{ "年": "2017"、 "articleCount": "3"} 、{ "年": "2018"、 "articleCount": "6"}]}、{ "publicationTitle": "24時間プログラミングのジャーナル"、 "publicationNumber": "2"、 "articleCounts":[{ "年": "2017"、" articleCount ": "1"}、{ "年": "2018"、 "articleCount": "4"}]}]} { "出版社": "IEEE"、 "タイトル":"出版タイトル1" 、 "contentTypeの": "雑誌"、 "ieeeCitationCount": "4"、」publicationNumber ": "15"、" paperCitations ":{" IEEE ":[{" オーダー ": "1"、" articleNumber」: "41"、 "publicationNumber": "4"、 "年": "2018"、 "タイトル": "第41条"}、{ "オーダー": "2"、 "articleNumber": "109"、 "publicationNumber": "3"、 "年": "2015"、 "タイトル":「第109条"}、{" オーダー ": "3"、" articleNumber」: "135"、 "publicationNumber": "1"、 "年": "2018"、 "タイトル": "文書135"}、{ "オーダー" : "4"、 "articleNumber": "97"、 "publicationNumber": "1"、 "年": "2016"、"タイトル": "第97条"}、{ "オーダー": "5"、 "articleNumber": "31"、 "publicationNumber": "1"、 "年": "2015"、 "タイトル":「第31条"}、{" オーダー ": "6"、" articleNumber」: "89"、 "publicationNumber": "4"、 "年": "2018"、 "タイトル": "第89条"}、{ "オーダー" : "7"、 "articleNumber": "9"、 "publicationNumber": "4"、 "年": "2018"、 "タイトル": "9条"}、{ "オーダー": "8"、 "articleNumber ": "26"、" publicationNumber ": "1"、 "年": "2015"、 "タイトル": "第26条"}、{"オーダー ": "9"、" articleNumber」: "117"、 "publicationNumber": "1"、 "年": "2015"、 "タイトル": "第117条"}、{ "オーダー": "10"、 "articleNumber": "35"、 "publicationNumber": "2"、 "年": "2019"、 "タイトル": "第35条"}、{ "オーダー": "11"、 "articleNumber": "9" 、 "publicationNumber": "2"、 "年": "2016"、 "タイトル": "9条"}、{ "オーダー": "12"、 "articleNumber": "61"、 "publicationNumber":「1 " "年": "2017"、 "タイトル": "第61条"}、{ "オーダー": "13"、"articleNumber」: "75"、 "publicationNumber": "3"、 "年": "2019"、 "タイトル": "第75条"}、{ "オーダー": "14"、 "articleNumber": "25"、 "publicationNumber": "2"、 "年": "2019"、 "タイトル": "第25条"}、{ "オーダー": "15"、 "articleNumber": "56"、 "publicationNumber": "3" 、 "年": "2016"、 "タイトル": "第56条"}]}} { "出版社": "IEEE"、 "タイトル": "公開タイトル2"、 "contentTypeの": "雑誌"、 "ieeeCitationCount ": "2"、" publicationNumber ": "28"、" paperCitations ":{" IEEE ":[{"注文 ": "1"、" articleNumber」: "14"、 "publicationNumber": "1"、 "年": "2018"、 "タイトル": "第14条"}、{ "オーダー": "2"、 "articleNumber": "105"、 "publicationNumber": "2"、 "年": "2017"、 "タイトル": "第105条"}、{ "オーダー": "3"、 "articleNumber": "130" 、 "publicationNumber": "4"、 "年": "2017"、 "タイトル": "第130条"}、{ "オーダー": "4"、 "articleNumber": "61"、 "publicationNumber":「4 " "年": "2019"、 "タイトル": "第61条"}、{ "オーダー": "5"、"articleNumber」: "115"、 "publicationNumber": "3"、 "年": "2015"、 "タイトル": "第115条"}、{ "オーダー": "6"、 "articleNumber": "84"、 "publicationNumber": "4"、 "年": "2015"、 "タイトル": "第84条"}、{ "オーダー": "7"、 "articleNumber": "57"、 "publicationNumber": "2" 、 "年": "2018"、 "タイトル": "第57条"}、{ "オーダー": "8"、 "articleNumber": "96"、 "publicationNumber": "4"、 "年":「2019 " "タイトル": "第96条"}、{ "オーダー": "9"、 "articleNumber": "9"、"publicationNumber」: "1"、 "年": "2017"、 "タイトル": "9条"}、{ "オーダー": "10"、 "articleNumber": "67"、 "publicationNumber": "4"、 "年": "2018"、 "タイトル": "第67条"}、{ "オーダー": "11"、 "articleNumber": "114"、 "publicationNumber": "2"、 "年": "2016" 、 "タイトル": "第114条"}、{ "オーダー": "12"、 "articleNumber": "59"、 "publicationNumber": "1"、 "年": "2015"、 "タイトル":「条59 "}、{" オーダー ": "13"、" articleNumber ": "118"、 "publicationNumber": "3"、"年」: "2015"、 "タイトル": "第118条"}、{ "オーダー": "14"、 "articleNumber": "61"、 "publicationNumber": "4"、 "年": "2016"、 "タイトル": "第61条"}、{ "オーダー": "15"、 "articleNumber": "79"、 "publicationNumber": "4"、 "年": "2017"、 "タイトル":「第79条"}、{" オーダー ": "16"、" articleNumberは」: "83"、 "publicationNumber": "3"、 "年": "2018"、 "タイトル": "第83条"}、{ "オーダー" : "17"、 "articleNumber": "24"、 "publicationNumber": "4"、 "年": "2016"、 "タイトル""第24条"}、{ "オーダー": "18"、 "articleNumber": "48"、 "publicationNumber": "3"、 "年": "2015"、 "タイトル": "第48条"}、 { "オーダー": "19"、 "articleNumber": "11"、 "publicationNumber": "4"、 "年": "2019"、 "タイトル": "第11条"}、{ "オーダー":「20 " "articleNumber": "125"、 "publicationNumber": "2"、 "年": "2019"、 "タイトル": "文書125"}、{ "オーダー": "21"、 "articleNumber":" 64" 、 "publicationNumber": "1"、 "年": "2016"、 "タイトル": "第64条"}、{ "オーダー":"22"、 "articleNumber": "25"、 "publicationNumber": "4"、 "年": "2016"、 "タイトル": "第25条"}、{ "オーダー": "23"、 "articleNumber" : "27"、 "publicationNumber": "1"、 "年": "2015"、 "タイトル": "第27条"}、{ "オーダー": "24"、 "articleNumber": "100"、 "publicationNumber ": "4"、" 年 ": "2019"、 "タイトル": "第100条"}、{ "オーダー": "25"、 "articleNumber": "108"、 "publicationNumber": "1"、"年」: "2018"、 "タイトル": "第108条"}、{ "オーダー": "26"、 "articleNumber":"82"、 "publicationNumber": "2"、 "年": "2017"、 "タイトル": "第82条"}、{ "オーダー": "27"、 "articleNumber": "22"、 "publicationNumber" : "2"、 "年": "2016"、 "タイトル": "第22条"}、{ "オーダー": "28"、 "articleNumber": "113"、 "publicationNumber": "1"、 "年": "2015"、" タイトル ": "113条"}]}} {" 出版社 ": "IEEE"、" タイトル ": "出版タイトル3"、" contentTypeの ": "雑誌"、" ieeeCitationCount ":" 4" 、 "publicationNumber": "23"、 "paperCitations":{ "IEEE":[{ "オーダー": "1" 、 "articleNumber": "75"、 "publicationNumber": "2"、 "年": "2016"、 "タイトル": "第75条"}、{ "オーダー": "2"、 "articleNumber": "88"、 "publicationNumber": "2"、 "年": "2018"、 "タイトル": "第88条"}、{ "オーダー": "3"、 "articleNumber": "12"、 "publicationNumber" : "2"、 "年": "2016"、 "タイトル": "第12条"}、{ "オーダー": "4"、 "articleNumber": "90"、 "publicationNumber": "2"、 "年": "2015"、" タイトル ": "第90条"}、{" オーダー ": "5"、" articleNumber」: "126"、"publicationNumber": "1"、 "年": "2017"、 "タイトル": "文書126"}、{ "オーダー": "6"、 "articleNumber": "12"、 "publicationNumber": "1" 、 "年": "2018"、 "タイトル": "第12条"}、{ "オーダー": "7"、 "articleNumber": "7"、 "publicationNumber": "1"、 "年":「2017 " "タイトル": "第7条"}、{ "オーダー": "8"、 "articleNumber": "49"、 "publicationNumber": "2"、 "年": "2015"、 "タイトル":"物品49 "}、{" オーダー ": "9"、" articleNumber ": "54"、 "publicationNumber": "2"、"年」: "2019"、 "タイトル": "第54条"}、{ "オーダー": "10"、 "articleNumber": "133"、 "publicationNumber": "2"、 "年": "2019"、 "タイトル": "第133条"}、{ "オーダー": "11"、 "articleNumber": "3"、 "publicationNumber": "1"、 "年": "2017"、 "タイトル":「第3条"}、{" オーダー ": "12"、" articleNumberは」: "23"、 "publicationNumber": "4"、 "年": "2015"、 "タイトル": "第23条"}、{ "秩序" : "13"、 "articleNumber": "5"、 "publicationNumber": "1"、 "年": "2016"、 "タイトル":"第5条"}、{ "オーダー": "14"、 "articleNumber": "8"、 "publicationNumber": "3"、 "年": "2019"、 "タイトル": "第8条"}、{ "順序": "15"、 "articleNumber": "1"、 "publicationNumber": "3"、 "年": "2016"、 "タイトル": "第1条"}、{ "オーダー": "16" 、 "articleNumber": "129"、 "publicationNumber": "4"、 "年": "2019"、 "タイトル": "文書129"}、{ "オーダー": "17"、 "articleNumber":「57 " "publicationNumber": "2"、 "年": "2019"、 "タイトル": "第57条"}、{ "オーダー":"18" 、 "articleNumber": "106"、 "publicationNumber": "1"、 "年": "2016"、 "タイトル": "第106条"}、{ "オーダー": "19"、 "articleNumber": "67"、 "publicationNumber": "3"、 "年": "2015"、 "タイトル": "第67条"}、{ "オーダー": "20"、 "articleNumberは": "42"、 "publicationNumber" : "1"、 "年": "2019"、 "タイトル": "第42条"}、{ "オーダー": "21"、 "articleNumber": "14"、 "publicationNumber": "1"、 "年": "2015"、" タイトル ": "第14条"}、{" オーダー ": "22"、" articleNumber ":"76" 、 "publicationNumber": "4"、 "年": "2018"、 "タイトル": "第76条"}、{ "オーダー": "23"、 "articleNumber": "134"、 "publicationNumber": "1"、 "年": "2016"、 "タイトル": "文書134"}]}} { "出版社": "IEEE"、 "タイトル": "公開タイトル4"、 "contentTypeの": "雑誌" 、 "ieeeCitationCount": "1"、 "publicationNumber": "21"、 "paperCitations":{ "IEEE":[{ "オーダー": "1"、 "articleNumber": "126"、 "publicationNumber":「1 」、 "年": "2015"、 "タイトル": "第126条"}、{ "オーダー": "2"、"articleNumber": "35"、 "publicationNumber": "4"、 "年": "2017"、 "タイトル": "第35条"}、{ "オーダー": "3"、 "articleNumber": "7" 、 "publicationNumber": "1"、 "年": "2016"、 "タイトル": "第7条"}、{ "オーダー": "4"、 "articleNumber": "116"、 "publicationNumber":「2 " "年": "2018"、 "タイトル": "文書116"}、{ "オーダー": "5"、 "articleNumber": "58"、 "publicationNumber": "3"、 "年":" 2015" 、 "タイトル": "第58条"}、{ "オーダー": "6"、 "articleNumber": "24"、」publicationNumber」: "4"、 "年": "2018"、 "タイトル": "第24条"}、{ "オーダー": "7"、 "articleNumber": "136"、 "publicationNumber": "1"、 "年": "2015"、 "タイトル": "第136条"}、{ "オーダー": "8"、 "articleNumber": "29"、 "publicationNumber": "4"、 "年": "2019" 、 "タイトル": "第29条"}、{ "オーダー": "9"、 "articleNumber": "118"、 "publicationNumber": "2"、 "年": "2015"、 "タイトル":「条118 "}、{" オーダー ": "10"、" articleNumber ": "102"、 "publicationNumber": "2"、"年」: "2015"、 "タイトル": "第102条"}、{ "オーダー": "11"、 "articleNumber": "41"、 "publicationNumber": "1"、 "年": "2019"、 "タイトル": "第41条"}、{ "オーダー": "12"、 "articleNumber": "87"、 "publicationNumber": "1"、 "年": "2017"、 "タイトル":「第87条"}、{" オーダー ": "13"、" articleNumberは」: "61"、 "publicationNumber": "4"、 "年": "2019"、 "タイトル": "第61条"}、{ "オーダー" : "14"、 "articleNumber": "91"、 "publicationNumber": "2"、 "年": "2017"、 "タイトル": "第91条"}、{ "オーダー": "15"、 "articleNumber": "88"、 "publicationNumber": "2"、 "年": "2015"、 "タイトル": "第88条"}、 { "オーダー": "16"、 "articleNumber": "83"、 "publicationNumber": "1"、 "年": "2019"、 "タイトル": "第83条"}、{ "オーダー":「17 " "articleNumber": "103"、 "publicationNumber": "1"、 "年": "2017"、 "タイトル": "第103条"}、{ "オーダー": "18"、 "articleNumber":" 107" 、 "publicationNumber": "2"、 "年": "2015"、 "タイトル": "第107条"}、{ "秩序": "19"、 "articleNumber": "81"、 "publicationNumber": "4"、 "年": "2016"、 "タイトル": "第81条"}、{ "オーダー": "20"、 "articleNumber ":" 76" 、 "publicationNumber": "3"、 "年": "2018"、 "タイトル": "第76条"}、{ "オーダー": "21"、 "articleNumber": "31"、」 publicationNumber」: "1"、 "年": "2017"、 "タイトル": "第31条"}]}} { "出版社": "IEEE"、 "タイトル": "出版タイトル5"、 "contentTypeの": "雑誌"、 "ieeeCitationCount": "2"、 "publicationNumber": "15"、 "paperCitations":{」IEEE ":[{" オーダー ": "1"、" articleNumber ": "28"、 "publicationNumber": "1"、 "年": "2017"、 "タイトル": "第28条"}、{" オーダー": "2"、" articleNumber ": "1"、 "publicationNumber": "1"、 "年": "2018"、 "タイトル": "第1条"}、{ "オーダー": "3"、" articleNumber」: "109"、 "publicationNumber": "4"、 "年": "2018"、 "タイトル": "第109条"}、{ "オーダー": "4"、 "articleNumber": "82"、 "publicationNumber": "1"、 "年": "2016"、 "タイトル": "第82条"}、{ "オーダー": "5"、"articleNumber": "83"、 "publicationNumber": "1"、 "年": "2017"、 "タイトル": "第83条"}、{ "オーダー": "6"、 "articleNumber": "136" 、 "publicationNumber": "4"、 "年": "2018"、 "タイトル": "第136条"}、{ "オーダー": "7"、 "articleNumber": "36"、 "publicationNumber":「1 " "年": "2018"、 "タイトル": "第36条"}、{ "オーダー": "8"、 "articleNumber": "83"、 "publicationNumber": "4"、 "年":" 2015" 、 "タイトル": "第83条"}、{ "オーダー": "9"、 "articleNumber": "132"、」publicationNumber」: "3"、 "年": "2018"、 "タイトル": "文書132"}、{ "オーダー": "10"、 "articleNumber": "83"、 "publicationNumber": "4"、 "年": "2016"、 "タイトル": "第83条"}、{ "オーダー": "11"、 "articleNumber": "51"、 "publicationNumber": "4"、 "年": "2015" 、 "タイトル": "第51条"}、{ "オーダー": "12"、 "articleNumber": "37"、 "publicationNumber": "2"、 "年": "2015"、 "タイトル":「条37 "}、{" オーダー ": "13"、" articleNumber ": "112"、 "publicationNumber": "1"、"年」: "2016"、 "タイトル": "文書112"}、{ "オーダー": "14"、 "articleNumber": "16"、 "publicationNumber": "1"、 "年": "2015"、 "タイトル": "第16条"}、{ "オーダー": "15"、 "articleNumber": "2"、 "publicationNumber": "3"、 "年": "2019"、 "タイトル":「第2条「}]}}输出:IEEEXtreme上の文字:24時間プログラミングの1.78ジャーナル:1.2015" 、 "articleNumber": "2"、 "publicationNumber": "3"、 "年": "2019"、 "タイトル": "第2条"}]}}输出:IEEEXtreme上の文字:24時間の1.78ジャーナルプログラミング:1.2015" 、 "articleNumber": "2"、 "publicationNumber": "3"、 "年": "2019"、 "タイトル": "第2条"}]}}输出:IEEEXtreme上の文字:24時間の1.78ジャーナルプログラミング:1.20

 

問題解決のためのアイデア

することによりC++、手動でプロセスを解析しjson、あまりにも難しく、考慮Python自動的にプログラミングします。

チェックBaiduの百科事典
\ [2年間の{すべて} {2年年間の回数とジャーナルの前に引用された内のすべての雑誌記事前}インパクトファクター= \ FRAC \記事の数]
の最初の行の分母を取得するのは非常に簡単情報処理は少し理解していない見て、問題の顔の残りの部分を取得します。

行の試みn-1の同一のジャーナルに統計した後、二年と分子の組成ことを見出し、ように直接列の後部に、使用してcount統計的サブ機能の数が発生する可能性があります。

 

ACコード

(ほとんどAC、ほとんど問題が下降し、キーによって昇順に従うように要求をソートすることができます)

import json
import operator

n = int(input())
publications = json.loads(input())
# print(publications)
# print(type(publications))
# for item in publications:
publications = publications["publications"]
# print(publications)

dic = dict()    # dic[publicationNumber] = publicationTitle
B = dict()      # 每一种期刊计算的分母
year = dict()
for item in publications:
    # print(item)
    # print(type(item))
    dic[item["publicationNumber"]] = item["publicationTitle"]
    cnt = 0
    for article in item["articleCounts"]:
        cnt += int(article["articleCount"])
        if item["publicationNumber"] not in year.keys():
            year[item["publicationNumber"]] = [article["year"]]
        else:
            year[item["publicationNumber"]].append(article["year"])
    # print(cnt)
    B[item["publicationNumber"]] = cnt

# print(dic)
# print(B)
# print(year)

# str = "\"publicationNumber\" : \"" + num + "\",\"year\" : \"" + year 

# 读取后 n 行 作为一个字符串
info = ""
for i in range(n-1):
    info += input()
    # info.append(json.loads(input()))
    # print(info[i])
# print(info)


Ans = dict()    # 每一种期刊计算的分子
for k, v in dic.items():
    cnt = 0
    for y in year[k]:
        str = "\"publicationNumber\" : \"" + k + "\",\"year\" : \"" + y
        cnt += info.count(str)
    Ans[k] = cnt / B[k]

# print(Ans)

AAns = dict()
for k, v in Ans.items():
    AAns[dic[k]] = v

# 排序
AAns = sorted(AAns.items(), key=operator.itemgetter(0, 1), reverse=False)
for (k, v) in AAns:
    print("%s: %.2lf" % (k, v))


(Pythonのレベルが上昇する必要があります...)

おすすめ

転載: www.cnblogs.com/izcat/p/11707780.html