2016ccf認(rèn)證考試試題
CDMA認(rèn)證論壇,即CCF是一個(gè)由CDMA運(yùn)營(yíng)商和制造商共同建立和維護(hù)的全球性非營(yíng)利組織。該組織致力于建立和規(guī)范CDMA終端產(chǎn)品的全球統(tǒng)一認(rèn)證和流程,促進(jìn)CDMA終端產(chǎn)品互操作性和一致性,推動(dòng)CDMA產(chǎn)業(yè)的發(fā)展。2009年9月10日,CTIA和CDG組織將其CDMA產(chǎn)品認(rèn)證部分統(tǒng)一合并入CCF認(rèn)證,自此,CCF認(rèn)證成為全球CDMA終端官方統(tǒng)一認(rèn)證。

1. 出現(xiàn)次數(shù)最多的數(shù)
#include
nclude #include
} cout << ans << endl; return 0; }
2. ISBN 號(hào)碼
#include #include
cout << "Right" << endl; }else { s[12] = c; cout << s << endl; } return 0; }
3.最大的矩形
#include using namespace std; int main() { int n; vector
} cout << ans << endl; return 0; }
4.有趣的數(shù)
#include using namespace std; long long f[2000][3][2]; /pic/pic/pic/list>
now += dp(n-1, 2, p3); /pic/pic/pic/pic/pic/pic/pic/p>
5.I’m stuck!
#include using namespace std; /pic/list>
public: virtual bool CanMove(char from, char to, int dx, int dy) = 0; }; class ForwardMove : public Move { public: virtual bool CanMove(char from, char to, int dx, int dy) { if (to == '#') return false; switch (from) { case '+' : case 'S' : case 'T' : return true; break; case '-' : return dy != 0; break; case '|' : return dx != 0; break; case '.' : return dx == 1; break; } return false; } }; class BackwardMove : public Move { public: virtual bool CanMove(char from, char to, int dx, int dy) { if (to == '#') return false; switch (to) { case '+' : case 'S' : case 'T' : return true; break; case '-' : return dy != 0; break; case '|' : return dx != 0; break; case '.' : return dx == -1; break; } return false; } }; char s[100][100]; typedef bool ARR[100][100]; ARR bs, bt; int sx, sy, tx, ty;
int d[4][2] = {{-1, 0},{1, 0},{0, 1},{0, -1}}; void Bfs(ARR b, Move *move, int x, int y) { if (b[x][y]) return; b[x][y] = true; for (int o = 0; o < 4; o++) { int dx = d[o][0]; int dy = d[o][1]; int xx = x + dx; int yy = y + dy; if (move->CanMove(s[x][y], s[xx][yy], dx, dy)) { Bfs(b, move, xx, yy); } } } int n, m; int main() { cin >> n >> m; for (int i = 0; i <= n + 1; i++) for (int j = 0; j <= m + 1; j++) s[i][j] = '#'; for (int i = 1; i <= n; i++) cin >> s[i]+1; for (int i = 0; i <= n + 1; i++) s[i][m + 1] = '#';
for (int i = 0; i <= n + 1; i++) { for (int j = 0; j <= m + 1; j++) { if (s[i][j] == 'S') { sx = i;
sy = j; } if (s[i][j] == 'T') { tx = i; ty = j; } } } Bfs(bs, new ForwardMove(), sx, sy); Bfs(bt, new BackwardMove(), tx, ty); int ans = 0; for (int i = 0; i <= n + 1; i++) { for (int j = 0; j <= m + 1; j++) { if (bs[i][j] && ! bt[i][j]) ans ++; } } if (bs[tx][ty] == false) cout << "I'm stuck!" << endl; else cout << ans << endl; return 0; }
更多相關(guān)文章推薦:
3.科技部國(guó)家三維CAD認(rèn)證培訓(xùn)考試試題
4.GMP認(rèn)證檢查評(píng)定標(biāo)準(zhǔn)培訓(xùn)試題
6.培訓(xùn)商家個(gè)人實(shí)名認(rèn)證方法
【ccf認(rèn)證考試試題】相關(guān)文章:
UG認(rèn)證考試試題12-02
助理物流師資格認(rèn)證考試試題03-25
Java認(rèn)證考試須知02-04
2016年ACCA考試《F8審計(jì)與認(rèn)證業(yè)務(wù)》沖刺試題02-09
科技部國(guó)家三維CAD認(rèn)證培訓(xùn)考試試題09-06
- 相關(guān)推薦