結果
| 問題 | No.3084 Identify f(x) |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2025-03-19 08:39:31 |
| 言語 | Rust (1.94.0 + proconio + num + itertools) |
| 結果 |
AC
|
| 実行時間 | 61 ms / 2,000 ms |
| コード長 | 346 bytes |
| 記録 | |
| コンパイル時間 | 1,399 ms |
| コンパイル使用メモリ | 189,652 KB |
| 実行使用メモリ | 9,280 KB |
| 平均クエリ数 | 3.00 |
| 最終ジャッジ日時 | 2026-07-08 08:20:49 |
| 合計ジャッジ時間 | 2,628 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge2_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 7 |
ソースコード
use proconio::input;
use std::io::{self, Write};
fn main() {
let mut x = 0;
println!("? {}", x);
io::stdout().flush().unwrap();
input!{
f0: i32
}
x = 1;
println!("? {}", x);
io::stdout().flush().unwrap();
input!{
f1: i32
}
println!("! {} {}", f1-f0, f0);
io::stdout().flush().unwrap();
}