只要照著題目說的把要求的輸入,
輸出成限定的格式即可。
[C](0ms, 266KB)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include<stdio.h> | |
int main( void ) | |
{ | |
char s[10000]; | |
while( scanf( "%s" , s ) != EOF ) | |
printf( "hello, %s\n", s ); | |
return 0; | |
} |
[C++](4ms, 734KB)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include<iostream> | |
using namespace std; | |
int main() | |
{ | |
string s; | |
while( cin >> s ) | |
cout << "hello, " << s << endl; | |
return 0; | |
} |
0 意見:
張貼留言