-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtemplate.go
50 lines (39 loc) · 917 Bytes
/
template.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
/***
* ____
* ____ ___ ____ ________ __/ __/
* / __ `__ \/ __ `/ ___/ / / / /_
* / / / / / / /_/ / / / /_/ / __/
* /_/ /_/ /_/\__,_/_/ \__,_/_/
*
* @link : https://maruftuhin.com
*/
package main
import (
"bufio"
"fmt"
"os"
)
// Debug micro. Starts
var DEBUG = "N"
var DEBUG_BOOL = false
func debug(args ...interface{}) {
if DEBUG_BOOL {
fmt.Fprintln(os.Stderr, args...)
}
}
// Ends
var reader *bufio.Reader = bufio.NewReader(os.Stdin)
var writer *bufio.Writer = bufio.NewWriter(os.Stdout)
func printf(f string, a ...interface{}) { fmt.Fprintf(writer, f, a...) }
func scanf(f string, a ...interface{}) { fmt.Fscanf(reader, f, a...) }
func main() {
if DEBUG != "N" {
DEBUG_BOOL = true
}
// STDOUT MUST BE FLUSHED MANUALLY!!!
defer writer.Flush()
var a, b int
scanf("%d %d\n", &a, &b)
// Code here!!!
printf("%d\n", a+b)
}