結果
問題 | No.455 冬の大三角 |
ユーザー |
|
提出日時 | 2020-03-22 13:46:44 |
言語 | Kuin (KuinC++ v.2021.9.17) |
結果 |
AC
|
実行時間 | 2 ms / 2,000 ms |
コード長 | 596 bytes |
コンパイル時間 | 2,289 ms |
コンパイル使用メモリ | 148,520 KB |
実行使用メモリ | 5,376 KB |
最終ジャッジ日時 | 2024-09-16 10:20:50 |
合計ジャッジ時間 | 4,467 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 54 |
ソースコード
func main()var x: []int :: #[2]intvar y: []int :: #[2]intvar ss: [][]char :: cui@input().split(" ")var H: int :: ss[0].toInt(&)var W: int :: ss[1].toInt(&)var cnt: int :: 0var s: [][]char :: #[H, W]charfor h(0, H - 1)do s[h] :: cui@input()for w(0, W - 1)if(s[h][w] = '*')do x[cnt] :: wdo y[cnt] :: hdo cnt :+ 1end ifend forend forif(x[0] = x[1])do s[y[0]][x[0] = 0 ?(1, 0)] :: '*'elif(y[0] = y[1])do s[y[0] = 0 ?(1, 0)][x[0]] :: '*'elsedo s[y[0]][x[1]] :: '*'end iffor h(0, H - 1)do cui@print(s[h] ~ "\n")end forend func