結果
問題 |
No.746 7の倍数
|
ユーザー |
![]() |
提出日時 | 2018-10-19 22:25:27 |
言語 | Rust (1.83.0 + proconio) |
結果 |
RE
|
実行時間 | - |
コード長 | 671 bytes |
コンパイル時間 | 12,056 ms |
コンパイル使用メモリ | 377,588 KB |
実行使用メモリ | 5,248 KB |
最終ジャッジ日時 | 2024-11-18 21:15:28 |
合計ジャッジ時間 | 13,369 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 RE * 1 |
other | RE * 20 |
ソースコード
use std::io::{Read,stdin}; fn main() { let mut buf = String::new(); stdin().read_to_string(&mut buf).unwrap(); let mut tok = buf.split_whitespace(); let mut get = || tok.next().unwrap(); macro_rules! get { ($t:ty) => (get().parse::<$t>().unwrap()); () => (get!(i64)); } let n = get!(usize); print!("0"); if n > 1 { print!("."); } for i in 0..n { print!("{}", b"142857"[i % 7] as char); } let _ = "0.1428571428571428571428571428571428571428571428571428571428571428571428571428571428571428571428571428"; // println!("{}", x.len()); println!(); }