acgo题库
  • 首页
  • 题库
  • 题单
  • 竞赛
  • 讨论
  • 排行
  • 团队
  • 备赛专区

    竞赛

    • CSP-J/S
    • 蓝桥杯

    考级

    • GESP
    • CPA
    • 电子学会考级
登录
注册
题目详情题解(0)讨论(0)提交记录(0)
  • 题解.极致作秀版

    #include <iostream> #include <vector> #include <sstream> using namespace std; vector<string> readWords() { string line; getline(cin, line); stringstream ss(line); vector<string> words; string word; while (ss >> word) { words.push_back(word); } return words; } int main() { vector<string> studentWords = readWords(); vector<string> correctWords = readWords(); int correctCount = 0; for (size_t i = 0; i < studentWords.size(); i) { if (studentWords[i] == correctWords[i]) { correctCount; } } cout << correctCount << endl; return 0; }

    userId_undefined

    琮

    出道萌新倔强青铜
    14阅读
    1回复
    1点赞
  • easy

    userId_undefined

    无敌的鳖佬仔给老爷爷猜猜被

    7月全勤卷王时间刺客空间掌握者循环·循环打卡人荣耀黄金I/O·IO入门者
    4阅读
    0回复
    0点赞
  • 评价一下

    userId_undefined

    金杰錱

    时间刺客空间掌握者模拟·模拟练习生倔强青铜字符串·魔法使数组·数组操作员
    1阅读
    0回复
    0点赞
首页