結果
問題 | No.218 経験値1.5倍 |
ユーザー |
![]() |
提出日時 | 2015-07-08 03:19:00 |
言語 | C90 (gcc 12.3.0) |
結果 |
AC
|
実行時間 | 1 ms / 2,000 ms |
コード長 | 264 bytes |
コンパイル時間 | 445 ms |
コンパイル使用メモリ | 20,096 KB |
実行使用メモリ | 5,248 KB |
最終ジャッジ日時 | 2024-12-29 15:15:47 |
合計ジャッジ時間 | 1,118 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 31 |
コンパイルメッセージ
main.c: In function ‘main’: main.c:7:9: warning: ignoring return value of ‘scanf’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 7 | scanf("%d", &a); | ^~~~~~~~~~~~~~~ main.c:8:9: warning: ignoring return value of ‘scanf’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 8 | scanf("%d", &b); | ^~~~~~~~~~~~~~~ main.c:9:9: warning: ignoring return value of ‘scanf’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 9 | scanf("%d", &c); | ^~~~~~~~~~~~~~~
ソースコード
#include <stdio.h> int main(void){ int a,b,c; int l,r; scanf("%d", &a); scanf("%d", &b); scanf("%d", &c); l = a/b + ((a%b != 0)? 1:0); r = a/c + ((a%c != 0)? 1:0); if( (l * 2) >= (r * 3)){ printf("YES\n"); }else{ printf("NO\n"); } return 0; }