結果
| 問題 |
No.218 経験値1.5倍
|
| コンテスト | |
| ユーザー |
くれちー
|
| 提出日時 | 2016-09-30 01:41:54 |
| 言語 | C90 (gcc 12.3.0) |
| 結果 |
AC
|
| 実行時間 | 1 ms / 2,000 ms |
| コード長 | 264 bytes |
| コンパイル時間 | 385 ms |
| コンパイル使用メモリ | 20,992 KB |
| 実行使用メモリ | 5,248 KB |
| 最終ジャッジ日時 | 2024-12-29 15:51:20 |
| 合計ジャッジ時間 | 1,411 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 31 |
コンパイルメッセージ
main.c: In function ‘main’:
main.c:6:9: warning: ignoring return value of ‘scanf’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
6 | scanf("%d %d %d", &a, &b, &c);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
ソースコード
#include <stdio.h>
int main() {
int a, b, c, nor, cam;
scanf("%d %d %d", &a, &b, &c);
nor = (a % b == 0) ? (a / b) : (a / b + 1);
cam = (a % c == 0) ? (a / c) : (a / c + 1);
if (cam <= nor * (2.0 / 3.0)) printf("YES\n");
else printf("NO\n");
return 0;
}
くれちー