結果
| 問題 | No.734 Careful Engineer | 
| コンテスト | |
| ユーザー |  Maeda | 
| 提出日時 | 2025-03-25 17:19:27 | 
| 言語 | C (gcc 13.3.0) | 
| 結果 | 
                                TLE
                                 
                             | 
| 実行時間 | - | 
| コード長 | 297 bytes | 
| コンパイル時間 | 330 ms | 
| コンパイル使用メモリ | 24,832 KB | 
| 実行使用メモリ | 14,768 KB | 
| 最終ジャッジ日時 | 2025-03-25 17:19:31 | 
| 合計ジャッジ時間 | 4,082 ms | 
| ジャッジサーバーID (参考情報) | judge3 / judge1 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| 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;
    int count = 1;
    if(a<=b){
        printf("-1");
    }else{
        while(a*count < b*count+c){
            count++;
        }
        printf("%d",count);
    }
}
            
            
            
        