結果
| 問題 |
No.734 Careful Engineer
|
| コンテスト | |
| ユーザー |
Maeda
|
| 提出日時 | 2025-03-25 17:23:32 |
| 言語 | C (gcc 13.3.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 289 bytes |
| コンパイル時間 | 302 ms |
| コンパイル使用メモリ | 26,496 KB |
| 実行使用メモリ | 5,888 KB |
| 最終ジャッジ日時 | 2025-03-25 17:23:34 |
| 合計ジャッジ時間 | 1,042 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 1 WA * 3 |
| other | AC * 1 WA * 10 |
コンパイルメッセージ
main.c: In function ‘main’:
main.c:6:5: 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>
#include <math.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{
count = ceil(c/a-b);
printf("%lld",count);
}
}
Maeda