結果

問題 No.218 経験値1.5倍
ユーザー 👑 testestest
提出日時 2015-08-09 00:43:23
言語 C90
(gcc 12.3.0)
結果
AC  
実行時間 2 ms / 2,000 ms
コード長 105 bytes
コンパイル時間 347 ms
コンパイル使用メモリ 19,584 KB
実行使用メモリ 6,824 KB
最終ジャッジ日時 2024-12-29 15:20:01
合計ジャッジ時間 1,580 ms
ジャッジサーバーID
(参考情報)
judge4 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 31
権限があれば一括ダウンロードができます
コンパイルメッセージ
main.c: In function ‘main’:
main.c:3:1: warning: implicit declaration of function ‘scanf’ [-Wimplicit-function-declaration]
    3 | scanf("%d%d%d",&a,&b,&c);
      | ^~~~~
main.c:1:1: note: include ‘<stdio.h>’ or provide a declaration of ‘scanf’
  +++ |+#include <stdio.h>
    1 | int main(){
main.c:3:1: warning: incompatible implicit declaration of built-in function ‘scanf’ [-Wbuiltin-declaration-mismatch]
    3 | scanf("%d%d%d",&a,&b,&c);
      | ^~~~~
main.c:3:1: note: include ‘<stdio.h>’ or provide a declaration of ‘scanf’
main.c:5:1: warning: implicit declaration of function ‘puts’ [-Wimplicit-function-declaration]
    5 | puts(c>b*2/3?"NO":"YES");
      | ^~~~
main.c:5:1: note: include ‘<stdio.h>’ or provide a declaration of ‘puts’

ソースコード

diff #

int main(){
int a,b,c;
scanf("%d%d%d",&a,&b,&c);
b=1+--a/b;c=1+a/c;
puts(c>b*2/3?"NO":"YES");
return 0;
}
0