結果
| 問題 |
No.1422 Social Distance in Train
|
| コンテスト | |
| ユーザー |
fukafukatani
|
| 提出日時 | 2021-04-04 10:54:37 |
| 言語 | Rust (1.83.0 + proconio) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 264 bytes |
| コンパイル時間 | 20,359 ms |
| コンパイル使用メモリ | 375,532 KB |
| 実行使用メモリ | 5,248 KB |
| 最終ジャッジ日時 | 2024-12-26 17:23:09 |
| 合計ジャッジ時間 | 19,738 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 6 WA * 6 |
ソースコード
fn main() {
if read::<i64>() % 2 == 0 {
println!("2");
} else {
println!("1");
}
}
fn read<T: std::str::FromStr>() -> T {
let mut s = String::new();
std::io::stdin().read_line(&mut s).ok();
s.trim().parse().ok().unwrap()
}
fukafukatani