結果

問題 No.388 階段 (1)
ユーザー Mrjuelmeat
提出日時 2018-07-27 22:20:58
言語 C++11(廃止可能性あり)
(gcc 13.3.0)
結果
AC  
実行時間 1 ms / 2,000 ms
コード長 188 bytes
コンパイル時間 128 ms
コンパイル使用メモリ 21,888 KB
実行使用メモリ 5,376 KB
最終ジャッジ日時 2024-07-05 00:52:46
合計ジャッジ時間 755 ms
ジャッジサーバーID
(参考情報)
judge1 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 12
権限があれば一括ダウンロードができます
コンパイルメッセージ
main.cpp: In function ‘int main()’:
main.cpp:9:10: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
    9 |     scanf("%d",&x);
      |     ~~~~~^~~~~~~~~
main.cpp:10:10: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
   10 |     scanf("%d",&y);
      |     ~~~~~^~~~~~~~~

ソースコード

diff #

#include<stdio.h>

int main(void)
{
    int x;
    int y;
    int z;
    
    scanf("%d",&x);
    scanf("%d",&y);
    
    z = x / y  +1;
    
    printf("%d",z);
    
    return 0;
    
}
0