安全问答

安全问答是一个知识全球问答,包含丰富的问答知识

首页 常规 游戏 娱乐 科技 程序员

nmk=inputstripsplito=Nofor i in rangeintn if k in inputstrip o=Yes breakprinto #转换为Swift

  • 日期: 2027-11-29
  • 标签: 社会

let input = readLine()!.split(separator: " ") let n = Int(input[0])! let m = Int(input[1])! let k = input[2]!

var o = "No" for _ in 0..<n { if let line = readLine(), line.contains(k) { o = "Yes" break } } print(o)

nmk=inputstripsplito=Nofor i in rangeintn if k in inputstrip o=Yes breakprinto #转换为Swift

原文地址: https://www.cveoy.top/t/topic/iQOz 著作权归作者所有。请勿转载和采集!

免费AI点我,无需注册和登录

  • 上一篇: 贵州2020年读铁路学校学什么好?热门技能推荐
  • 下一篇: ST01238A-8-25

© 2019 • 2025 - 安全问答 站长邮箱:wxgpt@qq.com    ICP备案/许可证号:豫ICP备2024104334号-2