結果
問題 | No.488 四角関係 |
ユーザー | miraxial |
提出日時 | 2017-02-25 01:40:35 |
言語 | Ruby (3.3.0) |
結果 |
TLE
(最新)
AC
(最初)
|
実行時間 | - |
コード長 | 196 bytes |
コンパイル時間 | 456 ms |
コンパイル使用メモリ | 11,348 KB |
実行使用メモリ | 30,656 KB |
最終ジャッジ日時 | 2023-09-01 21:56:29 |
合計ジャッジ時間 | 21,848 ms |
ジャッジサーバーID (参考情報) |
judge12 / judge14 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 1,177 ms
22,100 KB |
testcase_01 | AC | 1,075 ms
19,184 KB |
testcase_02 | AC | 1,311 ms
17,848 KB |
testcase_03 | AC | 453 ms
17,788 KB |
testcase_04 | AC | 750 ms
18,064 KB |
testcase_05 | AC | 1,981 ms
19,656 KB |
testcase_06 | AC | 2,494 ms
17,908 KB |
testcase_07 | AC | 4,668 ms
22,428 KB |
testcase_08 | TLE | - |
testcase_09 | -- | - |
testcase_10 | -- | - |
testcase_11 | -- | - |
testcase_12 | -- | - |
testcase_13 | -- | - |
testcase_14 | -- | - |
testcase_15 | -- | - |
testcase_16 | -- | - |
testcase_17 | -- | - |
testcase_18 | -- | - |
testcase_19 | -- | - |
testcase_20 | -- | - |
testcase_21 | -- | - |
testcase_22 | -- | - |
testcase_23 | -- | - |
testcase_24 | -- | - |
コンパイルメッセージ
Syntax OK
ソースコード
n,m=gets.split.map &:to_i a=Hash.new([]) m.times do x,y=gets.split.map &:to_i a[x]+=[y] a[y]+=[x] end p (t=[*0..n-1]).combination(4).count{|e|(e.map{|i|a[i]}.flatten-(t-e)).sort==(e*2).sort}