結果
問題 | No.893 お客様を誘導せよ |
ユーザー |
![]() |
提出日時 | 2019-09-27 21:32:01 |
言語 | PyPy3 (7.3.15) |
結果 |
AC
|
実行時間 | 94 ms / 2,000 ms |
コード長 | 401 bytes |
コンパイル時間 | 179 ms |
コンパイル使用メモリ | 82,136 KB |
実行使用メモリ | 89,124 KB |
最終ジャッジ日時 | 2024-09-24 20:51:12 |
合計ジャッジ時間 | 1,858 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 11 |
ソースコード
import sysinput = sys.stdin.readlinefrom collections import dequeN = int(input())ll = []for _ in range(N):PA = list(map(int, input().split()))A = PA[1:]ll.append(deque(A))ans = []while True:flag = Truefor ll_i in ll:if len(ll_i) != 0:flag = Falseans.append(ll_i.popleft())if flag:breakprint(*ans)