結果

問題 No.2462 七人カノン
ユーザー SaimonSaimon
提出日時 2023-11-17 18:24:16
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
MLE  
実行時間 -
コード長 508 bytes
コンパイル時間 481 ms
コンパイル使用メモリ 12,032 KB
実行使用メモリ 641,812 KB
最終ジャッジ日時 2023-11-17 18:24:21
合計ジャッジ時間 5,192 ms
ジャッジサーバーID
(参考情報)
judge12 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 151 ms
23,956 KB
testcase_01 AC 82 ms
13,184 KB
testcase_02 AC 152 ms
17,152 KB
testcase_03 MLE -
testcase_04 -- -
testcase_05 -- -
testcase_06 -- -
testcase_07 -- -
testcase_08 -- -
testcase_09 -- -
testcase_10 -- -
testcase_11 -- -
testcase_12 -- -
testcase_13 -- -
testcase_14 -- -
testcase_15 -- -
testcase_16 -- -
testcase_17 -- -
testcase_18 -- -
testcase_19 -- -
testcase_20 -- -
testcase_21 -- -
testcase_22 -- -
testcase_23 -- -
testcase_24 -- -
testcase_25 -- -
権限があれば一括ダウンロードができます

ソースコード

diff #

a = 100000

n, q = (int(x) for x in input().split())


M = [[0 for i in range(0,a+1)]for j in range(0,n+1)]

T = [0] * (a+1)

A = [0] * n

for i in range(0,q):
    
    m, t1, t2 = (int(x) for x in input().split())
    
    j = 0
    
    for j in range(t1,t2):
        
        T[j] += 1

        M[m-1][j] = 1
      
for i in range(0,n):
    for j in range(0,a):
        
        if M[i][j] == 1 and T[j] != 0:
            
            A[i] += 1/T[j]
            
for i in range(0,n):
    
    print(A[i])
0