結果
問題 |
No.250 atetubouのzetubou
|
ユーザー |
|
提出日時 | 2019-01-19 13:17:18 |
言語 | Nim (2.2.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 596 bytes |
コンパイル時間 | 2,181 ms |
コンパイル使用メモリ | 60,892 KB |
実行使用メモリ | 5,376 KB |
最終ジャッジ日時 | 2024-07-01 10:20:21 |
合計ジャッジ時間 | 3,399 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
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")