Submission #1117935
Source Code Expand
package main
import (
"fmt"
)
func main() {
var n, m int64
fmt.Scan(&n)
fmt.Scan(&m)
var ans int64
if n * 2 >= m {
ans = m / 2
} else {
ans = (n * 2 + m) / 4
}
fmt.Println(ans)
}
Submission Info
| Submission Time | |
|---|---|
| Task | C - Scc Puzzle |
| User | FujiHaruka |
| Language | Go (1.6) |
| Score | 300 |
| Code Size | 214 Byte |
| Status | AC |
| Exec Time | 1 ms |
| Memory | 512 KiB |
Judge Result
| Set Name | Sample | All | ||||
|---|---|---|---|---|---|---|
| Score / Max Score | 0 / 0 | 300 / 300 | ||||
| Status |
|
|
| Set Name | Test Cases |
|---|---|
| Sample | 00_example_01.txt, 00_example_02.txt |
| All | 00_example_01.txt, 00_example_02.txt, 01.txt, 02.txt, 03.txt, 04.txt, 05.txt, 06.txt, 07.txt |
| Case Name | Status | Exec Time | Memory |
|---|---|---|---|
| 00_example_01.txt | AC | 1 ms | 512 KiB |
| 00_example_02.txt | AC | 1 ms | 512 KiB |
| 01.txt | AC | 1 ms | 512 KiB |
| 02.txt | AC | 1 ms | 512 KiB |
| 03.txt | AC | 1 ms | 512 KiB |
| 04.txt | AC | 1 ms | 512 KiB |
| 05.txt | AC | 1 ms | 512 KiB |
| 06.txt | AC | 1 ms | 512 KiB |
| 07.txt | AC | 1 ms | 512 KiB |