結果

問題 No.222 引き算と足し算
ユーザー Xelmeph
提出日時 2017-01-26 21:21:39
言語 C++14
(gcc 13.3.0 + boost 1.87.0)
結果
AC  
実行時間 2 ms / 1,000 ms
コード長 83 bytes
コンパイル時間 497 ms
コンパイル使用メモリ 64,036 KB
実行使用メモリ 5,248 KB
最終ジャッジ日時 2024-12-23 11:45:54
合計ジャッジ時間 1,571 ms
ジャッジサーバーID
(参考情報)
judge2 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 31
権限があれば一括ダウンロードができます
コンパイルメッセージ
main.cpp:1:2: warning: #import is a deprecated GCC extension [-Wdeprecated]
    1 | #import<iostream>
      |  ^~~~~~
main.cpp:2:1: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
    2 | main(){int x,y;char o;std::cin>>x>>o>>y;std::cout<<x+(o%5?-y:y);}
      | ^~~~

ソースコード

diff #

#import<iostream>
main(){int x,y;char o;std::cin>>x>>o>>y;std::cout<<x+(o%5?-y:y);}
0