結果
問題 |
No.8061 uxs hxixtya pyuyn ixc hyixa kxuyn
|
ユーザー |
|
提出日時 | 2020-07-01 04:24:11 |
言語 | Kuin (KuinC++ v.2021.9.17) |
結果 |
AC
|
実行時間 | 509 ms / 2,000 ms |
コード長 | 730 bytes |
コンパイル時間 | 2,081 ms |
コンパイル使用メモリ | 143,952 KB |
実行使用メモリ | 5,376 KB |
最終ジャッジ日時 | 2024-09-16 11:12:52 |
合計ジャッジ時間 | 3,885 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 5 |
other | AC * 19 |
ソースコード
func main() var ans: bool :: false var t: []char :: cui@input() if(t =& null) do cui@print("NO\n") ret end if 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