結果
問題 | No.678 2Dシューティングゲームの必殺ビーム |
ユーザー | syunsuke |
提出日時 | 2018-06-20 23:33:54 |
言語 | Python3 (3.12.2 + numpy 1.26.4 + scipy 1.12.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 763 bytes |
コンパイル時間 | 90 ms |
コンパイル使用メモリ | 11,056 KB |
実行使用メモリ | 8,380 KB |
最終ジャッジ日時 | 2023-09-13 07:25:00 |
合計ジャッジ時間 | 1,185 ms |
ジャッジサーバーID (参考情報) |
judge13 / judge11 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 17 ms
7,856 KB |
testcase_01 | AC | 17 ms
7,804 KB |
testcase_02 | AC | 17 ms
7,732 KB |
testcase_03 | AC | 16 ms
7,852 KB |
testcase_04 | WA | - |
testcase_05 | AC | 16 ms
8,224 KB |
testcase_06 | AC | 15 ms
8,196 KB |
testcase_07 | AC | 15 ms
7,936 KB |
testcase_08 | AC | 15 ms
8,196 KB |
testcase_09 | AC | 16 ms
7,912 KB |
testcase_10 | AC | 15 ms
7,852 KB |
testcase_11 | WA | - |
testcase_12 | WA | - |
testcase_13 | AC | 16 ms
8,380 KB |
testcase_14 | AC | 16 ms
8,312 KB |
testcase_15 | AC | 17 ms
8,304 KB |
testcase_16 | AC | 16 ms
7,796 KB |
testcase_17 | AC | 17 ms
8,356 KB |
ソースコード
line=input() line=line.rstrip().split(" ") N=int(line[0]) BL=int(line[1]) BR=int(line[2]) list1=[0]*1280 list1[BL-1:BR-1]=[1]*(BR-BL) #print(list1[28]) list2=[] for i in range(N): line=input() line=line.rstrip().split(" ") list2.append([int(line[3]),i+1,int(line[0]),int(line[2])]) list2.sort(reverse=True) #print(list2) list3=[] for j in range(N): if list2[j][2]<1: list2[j][2]=1 if list2[j][3]>1280: list2[j][3]=1280 A=list1[list2[j][2]-1:list2[j][3]].count(1) B=list2[j][1] list1[list2[j][2]-1:list2[j][3]]=[0]*(list2[j][3]-list2[j][2]+1) list3.append([B,A]) list3.sort() #print(len(list1)) #print(list2) for k in range(N): if list3[k][1]>=1: print(1) elif list3[k][1]==0: print(0)