結果
| 問題 |
No.1945 Go Push!
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2022-09-23 16:12:07 |
| 言語 | Rust (1.83.0 + proconio) |
| 結果 |
AC
|
| 実行時間 | 13 ms / 2,000 ms |
| コード長 | 398 bytes |
| コンパイル時間 | 12,879 ms |
| コンパイル使用メモリ | 403,504 KB |
| 実行使用メモリ | 5,632 KB |
| 最終ジャッジ日時 | 2024-12-22 05:25:37 |
| 合計ジャッジ時間 | 14,854 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 23 |
コンパイルメッセージ
warning: unused variable: `a` --> src/main.rs:8:9 | 8 | let a: Vec<usize> = a.trim().split_whitespace().map(|s| s.parse().unwrap()).collect(); | ^ help: if this is intentional, prefix it with an underscore: `_a` | = note: `#[warn(unused_variables)]` on by default
ソースコード
fn main() {
let mut n = String::new();
std::io::stdin().read_line(&mut n).ok();
let n: usize = n.trim().parse().unwrap();
let mut a = String::new();
std::io::stdin().read_line(&mut a).ok();
let a: Vec<usize> = a.trim().split_whitespace().map(|s| s.parse().unwrap()).collect();
if n % 2 == 0 {
println!("Second");
} else {
println!("First");
}
}