結果
| 問題 | No.2268 NGワード回避 |
| コンテスト | |
| ユーザー |
tomerun
|
| 提出日時 | 2023-04-14 21:28:11 |
| 言語 | Crystal (1.21.0 + ACL) |
| 結果 |
AC
不安定
|
| 実行時間 | 2 ms / 2,000 ms |
| + 962µs | |
| コード長 | 192 bytes |
| 記録 | |
| コンパイル時間 | 9,571 ms |
| コンパイル使用メモリ | 325,124 KB |
| 実行使用メモリ | 6,528 KB |
| 最終ジャッジ日時 | 2026-09-13 05:16:04 |
| 合計ジャッジ時間 | 10,595 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge1_1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 52 |
ソースコード
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