結果
| 問題 | No.2836 Comment Out |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2024-08-09 22:11:04 |
| 言語 | Rust (1.83.0 + proconio) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 250 bytes |
| 記録 | |
| コンパイル時間 | 11,918 ms |
| コンパイル使用メモリ | 407,548 KB |
| 実行使用メモリ | 6,948 KB |
| 最終ジャッジ日時 | 2024-08-09 22:11:21 |
| 合計ジャッジ時間 | 14,072 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 4 |
| other | AC * 29 WA * 23 |
ソースコード
fn main() {
proconio::input! {
n: usize,
a: [i64; n],
}
let is_possible = a.iter().enumerate().all(|(i, &x)| x <= (i + 1) as i64);
if is_possible {
println!("Yes");
} else {
println!("No");
}
}