附上代碼:
SGU,人品測試器
<script type="text/javascript">
document.body.oncopy = function() {
if (window.clipboardData) {
setTimeout(function() {
var text = clipboardData.getData("text");
if (text && text.length>300) {
text = text + "/r/n/n本文來自CSDN博客,轉載請標明出處:" + location.href;
clipboardData.setData("text", text);
}
}, 100);
}
}
</script>
<script class="blogstory">function StorePage(){d=document;t=d.selection?(d.selection.type!='None'?d.selection.createRange().text:''):(d.getSelection?d.getSelection():'');void(keyit=window.open('http://www.365key.com/storeit.aspx?t='+escape(d.title)+'&u='+escape(d.location.href)+'&c='+escape(t),'keyit','scrollbars=no,width=475,height=575,left=75,top=20,status=no,resizable=yes'));keyit.focus();}</script>
[手動搬家自網易博客 原發表日期: 2009-08-15 12:43]
做sgu上的106時,總是WA on TEST#11, 後來參考某牛的標程,把y0 *= -c 改成了 y0 = (-c - (long long)a * x0) / b ,兩者理論上效果一樣的,而且前者理論上不可能溢出,但事實是改了後就AC了。。。
附上代碼:
附上代碼:
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.