結果
| 問題 | No.734 Careful Engineer | 
| コンテスト | |
| ユーザー |  Maeda | 
| 提出日時 | 2025-03-25 17:21:04 | 
| 言語 | C (gcc 13.3.0) | 
| 結果 | 
                                TLE
                                 
                             | 
| 実行時間 | - | 
| コード長 | 309 bytes | 
| コンパイル時間 | 362 ms | 
| コンパイル使用メモリ | 24,704 KB | 
| 実行使用メモリ | 8,732 KB | 
| 最終ジャッジ日時 | 2025-03-25 17:21:09 | 
| 合計ジャッジ時間 | 4,158 ms | 
| ジャッジサーバーID (参考情報) | judge2 / judge5 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| sample | -- * 4 | 
| other | AC * 2 TLE * 1 -- * 8 | 
コンパイルメッセージ
main.c: In function ‘main’:
main.c:5:5: 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>
void main(void){
    long long int a,b,c;
    scanf("%lld %lld %lld",&a,&b,&c);
    a *= 60;
    c *= 3600;
    long long int count = 1;
    if(a<=b){
        printf("-1");
    }else{
        while(a*count < b*count+c){
            count++;
        }
        printf("%lld",count);
    }
}
            
            
            
        