結果

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

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 46 ms
13,824 KB
testcase_01 AC 64 ms
14,848 KB
testcase_02 AC 45 ms
13,824 KB
testcase_03 TLE -
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())

T = [0] * (a+1)

t = [0] * (a+1)

m = [0] * (a+1)

t1 = [0]*(a+1)
t2 = [0]*(a+1)

A = [0] * (n+1)



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

      
for i in range(0,q):
    
    for j in range(t1[i],t2[i]):
    
        A[m[i]-1] += t[j]
      
            
for i in range(0,n):
    
    print(A[i])
0