結果
| 問題 |
No.250 atetubouのzetubou
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2024-02-20 16:01:38 |
| 言語 | Ruby (3.4.1) |
| 結果 |
AC
|
| 実行時間 | 391 ms / 5,000 ms |
| コード長 | 294 bytes |
| コンパイル時間 | 49 ms |
| コンパイル使用メモリ | 7,552 KB |
| 実行使用メモリ | 12,544 KB |
| 最終ジャッジ日時 | 2024-09-29 03:46:01 |
| 合計ジャッジ時間 | 4,793 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 20 |
コンパイルメッセージ
Main.rb:2: warning: assigned but unused variable - ans Main.rb:3: warning: assigned but unused variable - u Syntax OK
ソースコード
q = readline().to_i
ans = []
for u in 1..q do
c = readline().split()
d = c[0].to_i
x = c[1].to_i
t = c[2].to_i
count = 1
for i in 1..(d-1) do
count = count * (x + i) / i
if count > t
break
end
end
if count > t
puts "ZETUBOU"
else
puts "AC"
end
end