結果
| 問題 |
No.8062 A + B
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2020-12-08 23:44:54 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 83 bytes |
| コンパイル時間 | 418 ms |
| コンパイル使用メモリ | 61,568 KB |
| 実行使用メモリ | 5,376 KB |
| 最終ジャッジ日時 | 2024-09-18 21:43:48 |
| 合計ジャッジ時間 | 950 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 WA * 1 |
| other | WA * 8 |
コンパイルメッセージ
main.cpp:2:1: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
2 | main(){int a,b;std::cin>>a>>b;std::cout<<(b<0? a+b:a,b)<<'\n';}
| ^~~~
ソースコード
#include <iostream>
main(){int a,b;std::cin>>a>>b;std::cout<<(b<0? a+b:a,b)<<'\n';}