結果
| 問題 | No.857 素振り |
| コンテスト | |
| ユーザー |
Cyberdog-しばいぬ-
|
| 提出日時 | 2019-08-11 08:17:48 |
| 言語 | C(gnu17) (gcc 15.2.0) |
| 結果 |
TLE
|
| 実行時間 | - |
| コード長 | 260 bytes |
| 記録 | |
| コンパイル時間 | 75 ms |
| コンパイル使用メモリ | 37,376 KB |
| 実行使用メモリ | 5,888 KB |
| 最終ジャッジ日時 | 2026-07-22 11:25:52 |
| 合計ジャッジ時間 | 3,151 ms |
|
ジャッジサーバーID (参考情報) |
judge1_1 / judge2_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 2 WA * 5 TLE * 1 |
ソースコード
#include <stdio.h>
#include <iso646.h>
int main(void) {
int x, y, z, count = 0;
scanf("%d %d %d", &x, &y, &z);
for (int i = 1; i <= z; i++) {
if (i == x or i == y) continue;
count++;
}
printf("%d\n", count);
return 0;
}
Cyberdog-しばいぬ-