結果
問題 | No.337 P versus NP |
ユーザー |
![]() |
提出日時 | 2024-09-04 20:19:43 |
言語 | Rust (1.83.0 + proconio) |
結果 |
AC
|
実行時間 | 1 ms / 2,000 ms |
コード長 | 449 bytes |
コンパイル時間 | 13,166 ms |
コンパイル使用メモリ | 401,992 KB |
実行使用メモリ | 6,948 KB |
最終ジャッジ日時 | 2024-09-04 20:19:57 |
合計ジャッジ時間 | 14,646 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 23 |
ソースコード
use std::io;use std::io::prelude::*;fn main() -> () {let stdin = io::read_to_string(io::stdin()).unwrap();let mut stdin = stdin.split_whitespace();let stdout = io::stdout();let mut stdout = io::BufWriter::new(stdout.lock());let n = stdin.next().unwrap().parse::<i32>().unwrap();let p = stdin.next().unwrap().parse::<i32>().unwrap();writeln!(stdout, "{}", if p == n * p { "=" } else { "!=" }).unwrap_or(());}