Created
July 13, 2018 04:39
-
-
Save k163377/6526f6b31f1b030f53892b8017ec4cc7 to your computer and use it in GitHub Desktop.
IOTemplates
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
入出力のサンプル |
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> | |
#include <string> | |
using namespace std; | |
int main() { | |
int x, y; | |
string str; | |
cin >> x >> y; | |
cin >> str; | |
cout << x << ',' << y << endl; | |
cout << str << endl; | |
return 0; | |
} |
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
package main | |
import "fmt" | |
func main() { | |
var str string | |
fmt.Scan(&str) | |
fmt.Println(str) | |
} |
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
import java.io.BufferedReader; | |
import java.io.InputStreamReader; | |
public class Main { | |
public static void main(String[] args) { | |
String str; | |
BufferedReader in = new BufferedReader(new InputStreamReader(System.in)); | |
try { | |
str = new String(in.readLine()); | |
System.out.println(str); | |
}catch (Exception e){} | |
} | |
} |
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
Module Module1 | |
Sub Main() | |
Dim str As String | |
str = Console.ReadLine() | |
Console.WriteLine(str) | |
End Sub | |
End Module |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment