题解 | #你好,牛客#

你好,牛客

https://ac.nowcoder.com/acm/problem/21984

这题其实并不难 题目信息解读 这是一个非常简单的入门级编程题目,主要考察基本的输出能力。题目要求:

不需要任何输入

只需要输出固定的字符串"hello nowcoder"

特别注意大小写必须完全匹配

整体做题思路

理解题目要求:无输入,固定输出

选择编程语言

编写输出指定字符串的代码

提交验证

难点和注意事项

唯一需要注意的就是输出字符串的大小写必须完全一致

不需要处理任何输入逻辑

不同语言的输出语法略有不同

#include <stdio.h>

int main() {
    printf("hello nowcoder\n");
    return 0;
}

#include <iostream>
using namespace std;

int main() {
    cout << "hello nowcoder" << endl;
    return 0;
}

public class Main {
    public static void main(String[] args) {
        System.out.println("hello nowcoder");
    }
}

print("hello nowcoder")

console.log("hello nowcoder");
package main

import "fmt"

func main() {
    fmt.Println("hello nowcoder")
}

fn main() {
    println!("hello nowcoder");
}

<?php
echo "hello nowcoder\n";
?>

print("hello nowcoder")
全部评论

相关推荐

09-04 21:52
南京大学 Java
点赞 评论 收藏
分享
牛客48826091...:哥们胸肌挺好看
点赞 评论 收藏
分享
评论
点赞
收藏
分享

创作者周榜

更多
牛客网
牛客网在线编程
牛客网题解
牛客企业服务