結果
問題 | No.687 E869120 and Constructing Array 1 |
ユーザー |
![]() |
提出日時 | 2018-06-04 10:42:16 |
言語 | C (gcc 13.3.0) |
結果 |
AC
|
実行時間 | 2 ms / 1,000 ms |
コード長 | 172 bytes |
コンパイル時間 | 114 ms |
コンパイル使用メモリ | 28,160 KB |
実行使用メモリ | 5,376 KB |
最終ジャッジ日時 | 2024-06-30 09:33:03 |
合計ジャッジ時間 | 716 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 6 |
ソースコード
#include <stdio.h>int main(){int num, a;scanf("%d", &num);if(num % 2 == 0)a = num / 2;elsea = (num - 1) / 2;printf("%d %d\n", a, num - a);return 0;}