ルール違反で減点された
「使わないコードが3割以上あってはいけないルール」に抵触するので20%減点する、というメールが届いた。
Unused Code Rule Violated
The code you submitted during SRM 399 for the 250 point problem violates the "excessive extra code" rule. Submissions may contain no more than 30% unused code. For more information, please see the following URL: http://www.topcoder.com/tc?module=Static&d1=help&d2=ratedEvent#extracoderule
Your submissions have been re-scored as 20% of the problem value.
レーティングが899に落ちて灰色ユーザになってしまった。
問題のコード
http://www.topcoder.com/stat?c=problem_solution&rm=269920&rd=12171&pm=8761&cr=22724714
使わない下のコードがダメらしい。コメントの日本語が化けているのも心証を悪くしたのかも知れない。
// [\u37197][\u21015][\u12420][\u12522][\u12473][\u12488][\u12398][\u38263][\u12373][\u12434][\u36820][\u12377] template<class T, size_t N>size_t elementof(T (&)[N]){return N;}; template<class T>size_t elementof(const T& t){return t.size();} // [\u12510][\u12483][\u12503][\u12364][\u29305][\u23450][\u12398][\u12461][\u12540][\u12434][\u25345][\u12387][\u12390][\u12356][\u12427][\u12363][\u12393][\u12358][\u12363][\u12434][\u36820][\u12377] template<typename _K, typename _V> bool has_key(map<_K, _V> m, _K k){ return (m.find(k) != m.end()); }; typedef string S; typedef long long LL; typedef long double LD; typedef vector<LL> VL; typedef vector<string> VS; typedef vector<LL> VL; typedef vector<LD> VD;
便利にコードを書くためにテンプレートにいろいろ貼り込んでいこうとしていたのだけど、この程度でルール違反となるとあんまり貼り込んだら投稿する時に消すのが面倒か?3割超えているかどうかのテストが手元でもできればいいんだが。