結果

問題 No.709 優勝可能性
ユーザー kotatsugamekotatsugame
提出日時 2018-06-29 23:48:50
言語 Ruby
(3.3.0)
結果
AC  
実行時間 919 ms / 3,500 ms
コード長 201 bytes
コンパイル時間 51 ms
コンパイル使用メモリ 11,496 KB
実行使用メモリ 24,940 KB
最終ジャッジ日時 2023-09-13 15:49:51
合計ジャッジ時間 10,598 ms
ジャッジサーバーID
(参考情報)
judge12 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 80 ms
15,172 KB
testcase_01 AC 79 ms
15,164 KB
testcase_02 AC 80 ms
15,324 KB
testcase_03 AC 79 ms
15,164 KB
testcase_04 AC 79 ms
15,092 KB
testcase_05 AC 79 ms
15,340 KB
testcase_06 AC 80 ms
15,140 KB
testcase_07 AC 80 ms
15,356 KB
testcase_08 AC 80 ms
15,356 KB
testcase_09 AC 80 ms
15,112 KB
testcase_10 AC 596 ms
17,256 KB
testcase_11 AC 510 ms
17,320 KB
testcase_12 AC 733 ms
17,296 KB
testcase_13 AC 847 ms
16,996 KB
testcase_14 AC 804 ms
17,240 KB
testcase_15 AC 807 ms
17,372 KB
testcase_16 AC 868 ms
19,752 KB
testcase_17 AC 919 ms
24,940 KB
testcase_18 AC 79 ms
15,140 KB
testcase_19 AC 80 ms
15,092 KB
testcase_20 AC 825 ms
17,236 KB
testcase_21 AC 823 ms
17,056 KB
testcase_22 AC 79 ms
15,056 KB
testcase_23 AC 80 ms
15,380 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Syntax OK

ソースコード

diff #

eval"N,M="+gets.split*?,;U=[n=0]*M;t=[[]]*M;c=[j=0]*N;$<.map{|s|i=0;s.split.map{|x|a=x.to_i;(U[i]=a;t[i].map{|b|1>(c[b]-=1)&&n-=1};t[i]=[])if U[i]<a;(t[i]<<j;c[j]+=1)<2&&n+=1 if U[i]==a;i+=1};p n;j+=1}
0