結果
問題 | No.1713 trick or treat! |
ユーザー |
|
提出日時 | 2022-01-06 21:04:34 |
言語 | Rust (1.83.0 + proconio) |
結果 |
AC
|
実行時間 | 1 ms / 2,000 ms |
コード長 | 493 bytes |
コンパイル時間 | 12,815 ms |
コンパイル使用メモリ | 379,376 KB |
実行使用メモリ | 5,248 KB |
最終ジャッジ日時 | 2024-11-07 16:39:24 |
合計ジャッジ時間 | 13,766 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 5 |
ソースコード
fn main() {let mut buf = String::new();let mut input = {use std::io::Read;std::io::stdin().read_to_string(&mut buf).unwrap();buf.split_whitespace()};let trick: u64 = input.next().unwrap().parse().unwrap();let treat: u64 = input.next().unwrap().parse().unwrap();let output = {let mut product = 1;for i in 1..=(trick | treat) {product *= i;}product};println!("{}", output);}