結果
| 問題 | No.250 atetubouのzetubou |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2019-01-19 13:17:18 |
| 言語 | Nim (2.2.8) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 596 bytes |
| 記録 | |
| コンパイル時間 | 1,779 ms |
| コンパイル使用メモリ | 68,424 KB |
| 実行使用メモリ | 7,848 KB |
| 最終ジャッジ日時 | 2026-03-22 08:44:41 |
| 合計ジャッジ時間 | 3,175 ms |
|
ジャッジサーバーID (参考情報) |
judge2_0 / judge1_1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 15 WA * 5 |
ソースコード
template times*(n:int,body) = (for _ in 0..<n: body)
proc getchar_unlocked():char {. importc:"getchar_unlocked",header: "<stdio.h>" .}
proc scan(): int =
while true:
var k = getchar_unlocked()
if k < '0': break
result = 10 * result + k.ord - '0'.ord
proc printf(formatstr: cstring){.header: "<stdio.h>", varargs.}
let q = scan()
q.times:
let d = scan() # 深さ
let x = scan()
let t = scan()
var ans = 1.0
var ok = true
for i in 1..(d-1):
ans *= (x + i) / i
if ans <= t.float : continue
ok = false
printf("ZETUBOU\n")
break
if ok : printf("AC\n")