結果
| 問題 | No.734 Careful Engineer | 
| コンテスト | |
| ユーザー |  michonz4 | 
| 提出日時 | 2019-12-28 17:56:02 | 
| 言語 | C (gcc 13.3.0) | 
| 結果 | 
                                RE
                                 
                            (最新) 
                                AC
                                 
                            (最初) | 
| 実行時間 | - | 
| コード長 | 224 bytes | 
| コンパイル時間 | 181 ms | 
| コンパイル使用メモリ | 24,320 KB | 
| 実行使用メモリ | 5,248 KB | 
| 最終ジャッジ日時 | 2025-01-18 00:08:21 | 
| 合計ジャッジ時間 | 1,166 ms | 
| ジャッジサーバーID (参考情報) | judge5 / judge3 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| sample | AC * 4 | 
| other | AC * 10 RE * 1 | 
コンパイルメッセージ
main.c: In function ‘main’:
main.c:6:3: warning: ignoring return value of ‘scanf’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
    6 |   scanf("%lld %lld %lld", &a, &b, &c);
      |   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
            
            ソースコード
#include <stdio.h>
#define CEIL(a,b) ((a+b-1)/b)
int main() {
  long long a, b, c, ans;
  scanf("%lld %lld %lld", &a, &b, &c);
  a*=60;
  c*=60*60;
  ans=CEIL(c, (a-b));
  printf("%lld\n", ans>=0 ? ans: -1);
  return 0;
}
            
            
            
        