4 solutions

  • -14
    @ 2025-7-7 20:53:57

    命名空间写法:

    #include <bits/stdc++.h>
    using namespace std;
    
    namespace Hello_World {
    	void Hello() {
    		cout << "Hello,World!";
    	}
    }
    using namespace Hello_World;
    
    int main() {
    	Hello();
    	return 0;
    }
    
    

    Information

    ID
    11909
    Time
    1000ms
    Memory
    128MiB
    Difficulty
    1
    Tags
    # Submissions
    211
    Accepted
    69
    Uploaded By