結果
問題 | No.857 素振り |
ユーザー |
![]() |
提出日時 | 2019-08-14 18:42:50 |
言語 | C++11 (gcc 4.8.5) |
結果 |
WA
.
|
実行時間 | - |
コード長 | 240 Byte |
コンパイル時間 | 998 ms |
使用メモリ | 8,920 KB |
最終ジャッジ日時 | 2019-11-12 22:57:49 |
テストケース
テストケース表示入力 | 結果 | 実行時間 使用メモリ |
---|---|---|
sample1.txt | AC | 3 ms
6,876 KB |
sample2.txt | AC | 3 ms
6,872 KB |
test1.txt | AC | 3 ms
8,916 KB |
test2.txt | AC | 3 ms
8,920 KB |
test3.txt | WA | - |
test4.txt | WA | - |
test5.txt | WA | - |
test6.txt | WA | - |
test7.txt | WA | - |
test8.txt | WA | - |
ソースコード
#include <bits/stdc++.h> using namespace std; int main() { int x ,y,z; cin >> x >> y >> z; int ans =z; for(int i=0;i<=z;i++){ if(i == x){ ans--; } if (i == y){ ans--; } } cout << ans << endl; }