結果
問題 | No.311 z in FizzBuzzString |
ユーザー |
|
提出日時 | 2019-04-24 03:51:41 |
言語 | Rust (1.83.0 + proconio) |
結果 |
AC
|
実行時間 | 1 ms / 1,500 ms |
コード長 | 318 bytes |
コンパイル時間 | 14,542 ms |
コンパイル使用メモリ | 378,392 KB |
実行使用メモリ | 5,376 KB |
最終ジャッジ日時 | 2024-09-24 22:17:59 |
合計ジャッジ時間 | 13,144 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 11 |
ソースコード
use std::io::{self, BufRead};fn get_lines() -> Vec<String> {let stdin = io::stdin();let lines: Vec<String> = stdin.lock().lines().map(|l| l.unwrap()).collect();return lines;}fn main(){let s = &get_lines()[0];let n: i64 = s.parse().unwrap();println!("{}", ((n / 3) + (n / 5)) * 2);}