結果
| 問題 | 
                            No.734 Careful Engineer
                             | 
                    
| コンテスト | |
| ユーザー | 
                             | 
                    
| 提出日時 | 2018-09-28 21:49:54 | 
| 言語 | C++11(廃止可能性あり)  (gcc 13.3.0)  | 
                    
| 結果 | 
                             
                                WA
                                 
                             
                            
                         | 
                    
| 実行時間 | - | 
| コード長 | 254 bytes | 
| コンパイル時間 | 138 ms | 
| コンパイル使用メモリ | 22,656 KB | 
| 実行使用メモリ | 6,820 KB | 
| 最終ジャッジ日時 | 2024-10-12 06:38:36 | 
| 合計ジャッジ時間 | 695 ms | 
| 
                            ジャッジサーバーID (参考情報)  | 
                        judge1 / judge4 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| sample | AC * 1 WA * 3 | 
| other | AC * 1 WA * 9 | 
コンパイルメッセージ
main.cpp: In function ‘int main()’:
main.cpp:5:14: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
    5 |         scanf("%d %d %d",&A, &B, &C);
      |         ~~~~~^~~~~~~~~~~~~~~~~~~~~~~
            
            ソースコード
#include <stdio.h>
int main(){
        int A, B, C;
        scanf("%d %d %d",&A, &B, &C);
        if(C*60*60>=1*(60*A-B)) puts("-1");
        else if(C*60*60%(60*A-B)==0) printf("%d\n",C*60*60/(60*A-B));
        else printf("%d\n",1+C*60*60/(60*A-B));
}