結果

問題 No.2451 Redistribute Integers
ユーザー 👑 tatt61880tatt61880
提出日時 2023-09-17 11:18:38
言語 Kuin
(KuinC++ v.2021.9.17)
結果
AC  
実行時間 286 ms / 2,000 ms
コード長 292 bytes
コンパイル時間 2,680 ms
コンパイル使用メモリ 145,284 KB
実行使用メモリ 7,464 KB
最終ジャッジ日時 2023-09-17 11:18:46
合計ジャッジ時間 8,335 ms
ジャッジサーバーID
(参考情報)
judge12 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 2 ms
4,380 KB
testcase_01 AC 2 ms
4,380 KB
testcase_02 AC 2 ms
4,380 KB
testcase_03 AC 4 ms
4,376 KB
testcase_04 AC 274 ms
7,464 KB
testcase_05 AC 2 ms
4,380 KB
testcase_06 AC 2 ms
4,380 KB
testcase_07 AC 2 ms
4,376 KB
testcase_08 AC 200 ms
7,396 KB
testcase_09 AC 2 ms
4,380 KB
testcase_10 AC 2 ms
4,376 KB
testcase_11 AC 2 ms
4,376 KB
testcase_12 AC 86 ms
4,844 KB
testcase_13 AC 254 ms
7,256 KB
testcase_14 AC 286 ms
7,304 KB
testcase_15 AC 133 ms
5,472 KB
testcase_16 AC 115 ms
5,344 KB
testcase_17 AC 187 ms
6,328 KB
testcase_18 AC 254 ms
7,328 KB
testcase_19 AC 21 ms
4,376 KB
testcase_20 AC 199 ms
6,624 KB
testcase_21 AC 253 ms
7,320 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

func main()
	var n: int :: cui@inputInt()
	var a: []int :: #[n]int
	for i(0, n - 1)
		do a[i] :: cui@inputInt()
	end for
	
	var ans: bool :: true
	for i(1, n - 1)
		if((a[i] - a[0]) % n <> 0)
			do ans :: false
			break i
		end if
	end for
	do cui@print((ans ?("Yes", "No")) ~ "\n")
end func
0