結果

問題 No.687 E869120 and Constructing Array 1
ユーザー mamy-pokomamy-poko
提出日時 2018-06-03 20:51:37
言語 C
(gcc 12.3.0)
結果
RE  
実行時間 -
コード長 304 bytes
コンパイル時間 116 ms
コンパイル使用メモリ 27,444 KB
実行使用メモリ 4,380 KB
最終ジャッジ日時 2023-09-12 21:58:37
合計ジャッジ時間 911 ms
ジャッジサーバーID
(参考情報)
judge11 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 RE -
testcase_01 RE -
testcase_02 RE -
testcase_03 RE -
testcase_04 RE -
testcase_05 RE -
testcase_06 RE -
testcase_07 RE -
testcase_08 RE -
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <stdio.h>

void main()
{
    int data = 0;
    int a1, a2 = 0;
    int ans = 0;
    scanf("%d", &data);
    
    ans = data / 2;
    if(data % 2 == 0)
    {
        a1 = ans;
        a2 = ans;
    }
    else
    {
        a1 = ans;
        a2 = ans + 1;
    }
    
    printf("%d %d", a1, a2);
}
0