dhaval.daiict's blog

By dhaval.daiict, history, 5 weeks ago, In English,

Golang Compiler of Codeforces hosted on windows and it's contain lots of bug code are not goes to in status because of some scan function issue. after some time i got

This page isn’t working codeforces.com didn’t send any data. ERR_EMPTY_RESPONSE

and my code is

package main

import (

func main() {
	var n int
	fmt.Scanf("%d", &n)
a := make([]int, n)
	for i := 0; i < n; i++ {
	min :=a[0]
	max :=a[0]
	var co int
for i := 1; i < n; i++ {
		if a[i]< min {
		min = a[i]
 if a[i]> max {
		max = a[i]
  • Vote: I like it  
  • +8
  • Vote: I do not like it  

5 weeks ago, # |
  Vote: I like it 0 Vote: I do not like it

Auto comment: topic has been updated by dhaval.daiict (previous revision, new revision, compare).