結果
| 問題 |
No.2680 研究室配属
|
| コンテスト | |
| ユーザー |
ID 21712
|
| 提出日時 | 2024-11-10 22:27:59 |
| 言語 | Go (1.23.4) |
| 結果 |
TLE
|
| 実行時間 | - |
| コード長 | 454 bytes |
| コンパイル時間 | 13,406 ms |
| コンパイル使用メモリ | 240,312 KB |
| 実行使用メモリ | 13,772 KB |
| 最終ジャッジ日時 | 2024-11-10 22:28:29 |
| 合計ジャッジ時間 | 24,315 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 19 TLE * 2 -- * 2 |
ソースコード
package main
import . "fmt"
func main() {
var n,m int
Scan(&n,&m)
a:=make([]int,m)
for i:=range a {
Scan(&a[i])
}
t:=make([][]int,n)
for i:=range t {
t[i]=make([]int,m)
for k:=range t[i] {
Scan(&t[i][k])
}
}
p:=make([]int,n)
for i:=0;i<m;i++ {
for k,s:=range t {
c:=s[i]
if a[c]==0|| 0<p[k] {
continue
}
p[k]=c+1
a[c]--
}
}
for i,c:=range p {
if i>0 {
Print(" ")
}
Print(c-1)
}
Println()
}
ID 21712