結果
問題 |
No.2052 Indegree
|
ユーザー |
👑 |
提出日時 | 2022-08-21 13:01:18 |
言語 | Ruby (3.4.1) |
結果 |
WA
|
実行時間 | - |
コード長 | 99 bytes |
コンパイル時間 | 306 ms |
コンパイル使用メモリ | 7,552 KB |
実行使用メモリ | 12,288 KB |
最終ジャッジ日時 | 2024-10-10 05:58:52 |
合計ジャッジ時間 | 2,793 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 1 WA * 1 |
other | WA * 20 |
コンパイルメッセージ
Main.rb:1: warning: assigned but unused variable - m Syntax OK
ソースコード
n,m=gets.split.map &:to_i d=[0]*(n+1) $<.map{|l|d[l.split[1].to_i]+=1} 1.upto(n){|u|d[u]>0&&(p u)}