結果

問題 No.222 引き算と足し算
ユーザー climpet
提出日時 2017-01-26 21:32:50
言語 C++14
(gcc 13.3.0 + boost 1.87.0)
結果
AC  
実行時間 2 ms / 1,000 ms
コード長 81 bytes
コンパイル時間 496 ms
コンパイル使用メモリ 63,284 KB
実行使用メモリ 5,248 KB
最終ジャッジ日時 2024-12-23 11:46:29
合計ジャッジ時間 1,531 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-44)*y;}
      | ^~~~

ソースコード

diff #

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