Algorithm
Problem Name: beecrowd | 2755
Problem Link: https://www.beecrowd.com.br/judge/en/problems/view/2755
Output 9
By Roberto A. Costa Jr, UNIFEI Brazil
Timelimit: 1
Your programming teacher would like you to do a program with the following characteristics:
- Show the following sentence on the screen: "Ro'b'er to \ /" (Between r and t has a tab);
- Show the following sentence on the screen: (._.) ( l: ) ( .-. ) ( :l ) (._.);
- Show the following sentence on the screen: (^_-) (-_-) (-_^);
- Show the following sentence on the screen: ("_") ('.');
Input
There is not.
Output
The result of your program should be written according to the output example.
Input Sample | Output Sample |
"Ro'b'er to\/" (._.) ( l: ) ( .-. ) ( :l ) (._.) (^_-) (-_-) (-_^) ("_") ('.') |
Code Examples
#1 Code Example with C Programming
Code -
C Programming
#include <stdio.h>
int main() {
printf("\"Ro'b'er\tto\\/\"\n");
printf("(._.) ( l: ) ( .-. ) ( :l ) (._.)\n");
printf("(^_-) (-_-) (-_^)\n");
printf("(\"_\") ('.')\n");
}
Copy The Code &
Try With Live Editor
Output
#2 Code Example with C++ Programming
Code -
C++ Programming
#include <iostream>
using namespace std;
int main()
{
cout << "\"Ro'b'er\tto\\/\"" << endl;
cout << "(._.) ( l: ) ( .-. ) ( :l ) (._.)" << endl;
cout << "(^_-) (-_-) (-_^)" << endl;
cout << "(\"_\") ('.')" << endl;
return 0;
}
Copy The Code &
Try With Live Editor
Output
#3 Code Example with Java Programming
Code -
Java Programming
public class Main {
public static void main(String[] args) {
System.out.println("\"Ro'b'er\tto\\/\"");
System.out.println("(._.) ( l: ) ( .-. ) ( :l ) (._.)");
System.out.println("(^_-) (-_-) (-_^)");
System.out.println("(\"_\") (\'.\')");
}
}
Copy The Code &
Try With Live Editor
Output
#4 Code Example with Javascript Programming
Code -
Javascript Programming
const output = [
"\"Ro'b'er\tto\\/\"",
"(._.) ( l: ) ( .-. ) ( :l ) (._.)",
"(^_-) (-_-) (-_^)",
"(\"_\") ('.')",
]
console.log(output.join("\n"))
Copy The Code &
Try With Live Editor
Output
#5 Code Example with Python Programming
Code -
Python Programming
print('"Ro\'b\'er\tto\\/"')
print('(._.) ( l: ) ( .-. ) ( :l ) (._.)')
print('(^_-) (-_-) (-_^)')
print('("_") (\'.\')')
Copy The Code &
Try With Live Editor
Output