結果

問題 No.734 Careful Engineer
ユーザー
提出日時 2024-05-29 14:01:30
言語 Rust
(1.83.0 + proconio)
結果
AC  
実行時間 1 ms / 2,000 ms
コード長 270 bytes
コンパイル時間 13,324 ms
コンパイル使用メモリ 387,664 KB
実行使用メモリ 6,272 KB
最終ジャッジ日時 2025-06-20 02:11:44
合計ジャッジ時間 14,367 ms
ジャッジサーバーID
(参考情報)
judge2 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 4
other AC * 13
権限があれば一括ダウンロードができます

ソースコード

diff #

fn main() {
	let mut s = String::new();
	std::io::stdin().read_line(&mut s).ok();
	let n: Vec<i64> = s.split_whitespace().flat_map(str::parse).collect();
	let d = n[0] * 60 - n[1];
	if d <= 0 {
		println!("-1");
		return;
	}
	println!("{}", (n[2] * 3600 + d - 1) / d)
}
0