結果
| 問題 | No.756 チャンパーノウン定数 (1) |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2020-01-12 21:58:38 |
| 言語 | Rust (1.99.0 + proconio + num + itertools + ACL) |
| 結果 |
AC
不安定
|
| 実行時間 | 0 ms / 2,000 ms |
| + 866µs | |
| コード長 | 362 bytes |
| 記録 | |
| コンパイル時間 | 14,034 ms |
| コンパイル使用メモリ | 183,488 KB |
| 実行使用メモリ | 6,400 KB |
| 最終ジャッジ日時 | 2026-10-02 17:14:04 |
| 合計ジャッジ時間 | 15,930 ms |
|
ジャッジサーバーID (参考情報) |
judge1_0 / judge2_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 20 |
ソースコード
use std::io::Read;
fn solve(d: usize) {
println!("{}", (1..60).map(|i| i.to_string()).collect::<Vec<String>>().join("").chars().skip(d-1).next().unwrap());
}
fn main() {
let mut d = String::new();
std::io::stdin().read_to_string(&mut d).ok();
let d: usize = d.trim().split('\n').next().unwrap().trim().parse::<usize>().unwrap();
solve(d);
}