結果

問題 No.2462 七人カノン
ユーザー SaimonSaimon
提出日時 2023-11-17 18:22:29
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
RE  
実行時間 -
コード長 510 bytes
コンパイル時間 118 ms
コンパイル使用メモリ 11,904 KB
実行使用メモリ 648,084 KB
最終ジャッジ日時 2023-11-17 18:22:38
合計ジャッジ時間 8,945 ms
ジャッジサーバーID
(参考情報)
judge11 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 64 ms
17,556 KB
testcase_01 RE -
testcase_02 AC 43 ms
10,752 KB
testcase_03 RE -
testcase_04 RE -
testcase_05 RE -
testcase_06 RE -
testcase_07 RE -
testcase_08 RE -
testcase_09 RE -
testcase_10 RE -
testcase_11 RE -
testcase_12 RE -
testcase_13 MLE -
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 = 10000

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