Skip to content

Instantly share code, notes, and snippets.

@k163377
Created July 13, 2018 04:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save k163377/6526f6b31f1b030f53892b8017ec4cc7 to your computer and use it in GitHub Desktop.
Save k163377/6526f6b31f1b030f53892b8017ec4cc7 to your computer and use it in GitHub Desktop.
IOTemplates
入出力のサンプル
#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;
}
package main
import "fmt"
func main() {
var str string
fmt.Scan(&str)
fmt.Println(str)
}
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){}
}
}
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