結果
| 問題 |
No.893 お客様を誘導せよ
|
| コンテスト | |
| ユーザー |
osrgy01
|
| 提出日時 | 2021-04-15 14:31:36 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
AC
|
| 実行時間 | 143 ms / 2,000 ms |
| コード長 | 260 bytes |
| コンパイル時間 | 213 ms |
| コンパイル使用メモリ | 12,672 KB |
| 実行使用メモリ | 17,280 KB |
| 最終ジャッジ日時 | 2024-07-01 20:38:16 |
| 合計ジャッジ時間 | 2,105 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 11 |
ソースコード
n=int(input())
a=[[*map(int,input().split())][1:] for _ in range(n)]
ans=[]
while True:
check=0
for i in range(n):
if not a[i]:
check+=1
continue
ans.append(a[i].pop(0))
if check==n:
break
print(*ans)
osrgy01