結果
| 問題 |
No.2599 Summer Project
|
| コンテスト | |
| ユーザー |
H20
|
| 提出日時 | 2024-01-12 22:11:38 |
| 言語 | Rust (1.83.0 + proconio) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 2,000 ms |
| コード長 | 592 bytes |
| コンパイル時間 | 25,220 ms |
| コンパイル使用メモリ | 378,064 KB |
| 実行使用メモリ | 6,944 KB |
| 最終ジャッジ日時 | 2024-09-27 22:38:30 |
| 合計ジャッジ時間 | 15,998 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 4 |
ソースコード
use std::io::{self, Write, BufRead};
fn main() {
let stdin = io::stdin();
let mut lines = stdin.lock().lines();
io::stdout().flush().unwrap(); // プロンプトを即座に表示
let s = lines.next().unwrap().unwrap();
io::stdout().flush().unwrap(); // プロンプトを即座に表示
let t = lines.next().unwrap().unwrap();
let a = "watermelon";
let b = "shrinebell";
let c = "beachball";
if a!=s && a!=t{
println!("{}", a);
}
if b!=s && b!=t{
println!("{}", b);
}
if c!=s && c!=t{
println!("{}", c);
}
}
H20