結果
問題 | No.920 あかあお |
ユーザー |
![]() |
提出日時 | 2020-02-19 23:56:39 |
言語 | C (gcc 13.3.0) |
結果 |
AC
|
実行時間 | 1 ms / 2,000 ms |
コード長 | 224 bytes |
コンパイル時間 | 316 ms |
コンパイル使用メモリ | 27,904 KB |
実行使用メモリ | 5,248 KB |
最終ジャッジ日時 | 2024-10-08 18:26:47 |
合計ジャッジ時間 | 1,144 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 11 |
ソースコード
#include<stdio.h> int main() { int x, y, z; scanf("%d %d %d", &x, &y, &z); if (x < y) { y ^= x; x ^= y; y ^= x; } if (x >= y + z) printf("%d\n", y + z); else printf("%d\n", x + (z - x + y) / 2); return 0; }