2014-02-21 Code 備忘錄►Else STEP5::Problem 0096 : 命運的猜測! http://web2.ck.tp.edu.tw/~step5/probdisp.php?pid=0096互動題。很簡單的2分搜~~ 12345678910111213#include <cstdlib>#include "special_0096.h"#include <iostream>using namespace std;int main(int argc,char *argv[]){ int a=1,b=getn(); while(1){ if(suisoku((a+b)/2))b=(a+b)/2; else a=(a+b)/2; } return 0;} Newer TOJ::質數判斷 Older STEP5::Problem 0085 : 切木棒