2016 百度校招研發算法題 9.12

  很簡單,直接ac: 1 #include "iostream" 2 3 using namespace std; 4 5 int n, t, tag = 1; 6 int main() 7 { 8 cin >> n; 9 10 if (n % 2 == 1) 11 t = n; 12 else 13 t =n+ 1
相關文章
相關標籤/搜索