結果

問題 No.504 ゲーム大会(ランキング)
ユーザー umaumaxumaumax
提出日時 2017-04-25 00:48:17
言語 Go
(1.22.1)
結果
AC  
実行時間 1,308 ms / 2,000 ms
コード長 258 bytes
コンパイル時間 10,716 ms
コンパイル使用メモリ 213,756 KB
実行使用メモリ 8,088 KB
最終ジャッジ日時 2023-10-11 18:50:36
合計ジャッジ時間 22,326 ms
ジャッジサーバーID
(参考情報)
judge14 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 1 ms
4,348 KB
testcase_01 AC 1 ms
4,348 KB
testcase_02 AC 1 ms
4,348 KB
testcase_03 AC 1 ms
4,348 KB
testcase_04 AC 2 ms
4,352 KB
testcase_05 AC 2 ms
4,348 KB
testcase_06 AC 2 ms
4,348 KB
testcase_07 AC 1,307 ms
8,088 KB
testcase_08 AC 1,300 ms
8,080 KB
testcase_09 AC 1,303 ms
8,084 KB
testcase_10 AC 1,307 ms
8,084 KB
testcase_11 AC 1,308 ms
8,076 KB
testcase_12 AC 860 ms
7,968 KB
testcase_13 AC 849 ms
7,924 KB
testcase_14 AC 1,300 ms
8,084 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

package main

import (
	"fmt"
)

func main() {
	var N int
	fmt.Scan(&N)
	as := make([]int, N)
	for i, _ := range as {
		fmt.Scan(&as[i])
	}
	k := as[0]
	fmt.Println("1")
	cnt := 1
	for _, v := range as[1:] {
		if v > k {
			cnt++
		}
		fmt.Println(cnt)
	}
}
0