結果
問題 |
No.857 素振り
|
ユーザー |
![]() |
提出日時 | 2019-09-25 06:43:05 |
言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
結果 |
TLE
|
実行時間 | - |
コード長 | 312 bytes |
コンパイル時間 | 421 ms |
コンパイル使用メモリ | 57,412 KB |
実行使用メモリ | 13,756 KB |
最終ジャッジ日時 | 2024-09-19 20:15:48 |
合計ジャッジ時間 | 2,849 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 2 TLE * 1 -- * 5 |
ソースコード
#include <fstream> #include <iostream> #include <utility> int main() { //std::ifstream inf("Text.txt"); std::cin.rdbuf(inf.rdbuf()); long long int X, Y, Z; std::cin >> X >> Y >> Z; int ans = 0; for (int i = 1; i <= Z; i++) { if (i != X && i != Y) { ans++; } } std::cout << ans << std::endl; }