結果
| 問題 | No.2268 NGワード回避 |
| コンテスト | |
| ユーザー |
tomerun
|
| 提出日時 | 2023-04-14 21:28:11 |
| 言語 | Crystal (1.22.1 + ACL) |
| 結果 |
AC
不安定
|
| 実行時間 | 3 ms / 2,000 ms |
| + 589µs | |
| コード長 | 192 bytes |
| 記録 | |
| コンパイル時間 | 11,879 ms |
| コンパイル使用メモリ | 336,580 KB |
| 実行使用メモリ | 6,400 KB |
| 最終ジャッジ日時 | 2026-12-01 00:31:05 |
| 合計ジャッジ時間 | 15,107 ms |
|
ジャッジサーバーID (参考情報) |
judge1_0 / judge2_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 56 |
ソースコード
n = read_line.to_i
s = Array.new(n) { read_line }
rnd = Random.new
while true
t = Array.new(n) { rnd.next_bool ? 'a' : 'b' }.join
if s.all? { |ng| ng != t }
puts t
break
end
end
tomerun