結果
問題 | No.734 Careful Engineer |
ユーザー |
![]() |
提出日時 | 2020-02-20 22:04:51 |
言語 | C (gcc 13.3.0) |
結果 |
AC
|
実行時間 | 1 ms / 2,000 ms |
コード長 | 206 bytes |
コンパイル時間 | 123 ms |
コンパイル使用メモリ | 24,576 KB |
実行使用メモリ | 5,248 KB |
最終ジャッジ日時 | 2025-01-18 00:08:39 |
合計ジャッジ時間 | 803 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 4 |
other | AC * 11 |
コンパイルメッセージ
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");elseprintf("%lld\n", (3600 * c + a - b - 1) / (a - b));return 0;}