結果
問題 | No.126 2基のエレベータ |
ユーザー |
|
提出日時 | 2018-06-15 15:53:39 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 193 bytes |
コンパイル時間 | 526 ms |
コンパイル使用メモリ | 63,732 KB |
実行使用メモリ | 6,944 KB |
最終ジャッジ日時 | 2024-06-30 14:49:40 |
合計ジャッジ時間 | 1,546 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 13 WA * 14 |
ソースコード
#include <iostream> using namespace std; int main(int argc, char* argv[]) { int A,B,S; cin>>A>>B>>S; int x1=A-S; if (x1<0){ x1=-x1; } int ans; ans=x1+S; cout<<ans<<endl; return 0; }