ZeroJudge & UVa Online Judge answers
#include #include #include //格式控制 #include using namespace std; int main() { int input; while(cin>>input) { string str; for(int i=1;i<=input;i++) { str +='+'; cout.setf(ios::right); cout << setw(input) << setfill('_') << str< } cout< } return 0; }
No comments:
Post a Comment