結果

問題 No.709 優勝可能性
ユーザー kotatsugamekotatsugame
提出日時 2018-06-29 23:57:47
言語 Ruby
(3.2.2)
結果
AC  
実行時間 936 ms / 3,500 ms
コード長 175 bytes
コンパイル時間 39 ms
コンパイル使用メモリ 11,424 KB
実行使用メモリ 25,356 KB
最終ジャッジ日時 2023-09-13 15:52:26
合計ジャッジ時間 10,893 ms
ジャッジサーバーID
(参考情報)
judge11 / judge15
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 81 ms
16,692 KB
testcase_01 AC 79 ms
16,848 KB
testcase_02 AC 78 ms
16,864 KB
testcase_03 AC 79 ms
16,696 KB
testcase_04 AC 79 ms
16,864 KB
testcase_05 AC 79 ms
16,736 KB
testcase_06 AC 79 ms
16,704 KB
testcase_07 AC 79 ms
16,848 KB
testcase_08 AC 79 ms
16,632 KB
testcase_09 AC 77 ms
16,724 KB
testcase_10 AC 607 ms
18,044 KB
testcase_11 AC 518 ms
18,108 KB
testcase_12 AC 755 ms
18,092 KB
testcase_13 AC 872 ms
17,868 KB
testcase_14 AC 834 ms
17,836 KB
testcase_15 AC 833 ms
18,108 KB
testcase_16 AC 890 ms
20,432 KB
testcase_17 AC 936 ms
25,356 KB
testcase_18 AC 79 ms
16,696 KB
testcase_19 AC 79 ms
16,712 KB
testcase_20 AC 866 ms
18,056 KB
testcase_21 AC 848 ms
17,836 KB
testcase_22 AC 79 ms
16,604 KB
testcase_23 AC 79 ms
16,708 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Syntax OK

ソースコード

diff #

gets;U=[n=0]*11;t=[[]]*11;c=[0]*2e5;$<.map{|s|i=0;s.split.map{|x|a=x.to_i;U[i+=1]<a&&(U[i]=a;t[i].map{|b|1>(c[b]-=1)&&n-=1};t[i]=[]);U[i]==a&&(t[i]<<$.;c[$.]+=1)<2&&n+=1};p n}
0