結果
問題 | No.734 Careful Engineer |
ユーザー |
![]() |
提出日時 | 2020-02-20 22:04:51 |
言語 | C (gcc 13.3.0) |
結果 |
AC
|
実行時間 | 1 ms / 2,000 ms |
コード長 | 206 bytes |
コンパイル時間 | 792 ms |
コンパイル使用メモリ | 25,548 KB |
実行使用メモリ | 7,844 KB |
最終ジャッジ日時 | 2025-06-20 00:46:26 |
合計ジャッジ時間 | 726 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 4 |
other | AC * 13 |
コンパイルメッセージ
main.c: In function ‘main’: main.c:5:9: warning: ignoring return value of ‘scanf’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 5 | scanf("%lld %lld %lld", &a, &b, &c); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
ソースコード
#include<stdio.h> int main() { long long int a, b, c; scanf("%lld %lld %lld", &a, &b, &c); a *= 60; if (a <= b) printf("-1\n"); else printf("%lld\n", (3600 * c + a - b - 1) / (a - b)); return 0; }