結果

問題 No.3061 uxs hxixtya pyuyn ixc hyixa kxuyn
ユーザー 👑 tatt61880tatt61880
提出日時 2020-04-01 22:46:28
言語 Kuin
(KuinC++ v.2021.9.17)
結果
RE  
実行時間 -
コード長 678 bytes
コンパイル時間 1,822 ms
コンパイル使用メモリ 145,648 KB
実行使用メモリ 4,372 KB
最終ジャッジ日時 2023-10-14 16:05:03
合計ジャッジ時間 4,400 ms
ジャッジサーバーID
(参考情報)
judge11 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 2 ms
4,352 KB
testcase_01 AC 1 ms
4,356 KB
testcase_02 AC 2 ms
4,348 KB
testcase_03 AC 2 ms
4,352 KB
testcase_04 AC 39 ms
4,348 KB
testcase_05 AC 249 ms
4,352 KB
testcase_06 AC 43 ms
4,356 KB
testcase_07 AC 2 ms
4,348 KB
testcase_08 AC 2 ms
4,352 KB
testcase_09 AC 30 ms
4,356 KB
testcase_10 AC 7 ms
4,372 KB
testcase_11 AC 15 ms
4,348 KB
testcase_12 AC 7 ms
4,352 KB
testcase_13 RE -
testcase_14 AC 17 ms
4,372 KB
testcase_15 RE -
testcase_16 AC 12 ms
4,348 KB
testcase_17 AC 27 ms
4,348 KB
testcase_18 AC 9 ms
4,352 KB
testcase_19 AC 2 ms
4,352 KB
testcase_20 AC 2 ms
4,352 KB
testcase_21 AC 2 ms
4,352 KB
testcase_22 AC 2 ms
4,356 KB
testcase_23 AC 3 ms
4,352 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

func main()
	var ans: bool :: false
	var t: []char :: cui@input()
	for i(0, ^t - 2)
		for j(i + 1, ^t - 1)
			var s: []char :: ##t
			for x(0, ^s - 1)
				if(x < i | j < x | (x - i) % 2 = 1)
					var c: char :: s[x]
					for y(0, ^s - 1)
						if(s[y] = c)
							do s[y] :: ' '
						end if
					end for
				end if
			end for
			var f: bool :: true
			for x(0, ^s - 1)
				if(i <= x & x <= j)
					if((x - i) % 2 = 0)
						if(s[x] = ' ')
							do f :: false
						end if
					else
						if(s[x] <> ' ')
							do f :: false
						end if
					end if
				end if
			end for
			if(f)
				do ans :: true
			end if
		end for
	end for
	do cui@print(ans ?("Yes\n", "NO\n"))
end func
0