stupidsing 2019-4-19 09:22
諗左好耐結果用左 bisection 暴力去爆, success
analytic solution 唔知有幾煩 lol
btw, 勁人十分鐘做完一條 code jam...
darigold 2019-4-23 22:38
class Solution {
public:
int preimageSizeFZF(int x) {
x = x % 305175781;if (x == 305175780) return 0;
x = x % 61035156;if (x == 61035155) return 0;
x = x % 12207031;if (x == 12207030) return 0;
x = x % 2441406;if (x == 2441405) return 0;
x = x % 488281;if (x == 488280) return 0;
x = x % 97656;if (x == 97655) return 0;
x = x % 19531;if (x == 19530) return 0;
x = x % 3906;if (x == 3905) return 0;
x = x % 781;if (x == 780) return 0;
x = x % 156;if (x == 155) return 0;
x = x % 31;if (x == 30) return 0;
x = x % 6;if (x == 5) return 0;
return 5;
}
};
鄉貢仁 2019-4-25 19:40
以前微軟(windows 3.1)開始會收埋keyboard 或 mouse hotkey, trigger 咗就會有Easter egg. 包括迷宮,工作人員字幕。而有個甚至用 telnet 來播 starwar text movie 添.
:smile_30:
form5 2019-4-29 22:19
Susan 姐 吾知去左邊,有少少掛念:smile_38: