結果
| 問題 |
No.651 E869120 and Driving
|
| コンテスト | |
| ユーザー |
ジョギング
|
| 提出日時 | 2018-03-17 00:12:52 |
| 言語 | Rust (1.83.0 + proconio) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 509 bytes |
| コンパイル時間 | 17,560 ms |
| コンパイル使用メモリ | 375,568 KB |
| 実行使用メモリ | 5,248 KB |
| 最終ジャッジ日時 | 2024-12-21 14:57:43 |
| 合計ジャッジ時間 | 16,903 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 WA * 1 |
| other | AC * 4 WA * 3 |
ソースコード
use std::io::{stdin, Read};
fn main() {
let mut buf = String::new();
stdin().read_to_string(&mut buf).unwrap();
let mut buf = buf.split_whitespace();
let mut get = || buf.next().unwrap().parse::<i32>().unwrap();
let mut a = get() * 60;
let mut m = 0;
let mut h = 10;
loop {
if a <= 0 {
println!("{}:{}", h, m);
break;
}
a -= 100;
m += 1;
if m >= 60 {
m = 0;
h += 1;
}
}
}
ジョギング