반응형 HackerRank9 [HackerRank] Strings - Easy https://www.hackerrank.com/challenges/c-tutorial-strings/problem Strings | HackerRank Learn how to input and output strings. www.hackerrank.com #include #include using namespace std; void SwapZeroLoc(char* str1,char* str2); int main() { // Complete the program string f_str,s_str; cin>>f_str; cin.ignore(); getline(cin,s_str); cout 2019. 10. 14. [HackerRank]Attribute Parser - Medium https://www.hackerrank.com/challenges/attribute-parser Attribute Parser | HackerRank Parse the values within various tags. www.hackerrank.com #include #include #include #include #include #include using namespace std; map tagMap; void createTag(int& n,string pretag) { if(!n) return; string line,tag,attr,value; getline(cin,line); int i=1; if(line[i]=='/'){ while(line[i]!='>')i++; if(pretag.size()>.. 2019. 10. 14. [HackerRank] Array Introduction - Easy https://www.hackerrank.com/challenges/arrays-introduction/problem Arrays Introduction | HackerRank How to access and use arrays. Print the array in the reverse order. www.hackerrank.com #include #include #include #include #include using namespace std; int main() { /* Enter your code here. Read input from STDIN. Print output to STDOUT */ int arrNum,arr[10000]; cin>>arrNum; for(int i=0;i>arr[i]; }.. 2019. 10. 12. 이전 1 2 다음 반응형