結果
| 問題 |
No.8043 yukicoderへようこそ!
|
| コンテスト | |
| ユーザー |
leaf_1415
|
| 提出日時 | 2019-04-01 22:32:47 |
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 357 bytes |
| コンパイル時間 | 405 ms |
| コンパイル使用メモリ | 54,648 KB |
| 実行使用メモリ | 5,248 KB |
| 最終ジャッジ日時 | 2024-11-27 03:28:53 |
| 合計ジャッジ時間 | 799 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 3 WA * 3 |
ソースコード
#include <iostream>
#include <string>
#include <stdlib.h>
using namespace std;
string s;
int main(void)
{
cin >> s;
if(s[0] > '0' && s[0] <= '9'){
int a = atoi(s.c_str()), b;
if(cin >> b){
cin >> s;
cout << a+b << " " << s << endl;
return 0;
}
cout << a*(a+1)/2 << endl;
return 0;
}
cout << "Hello World!" << endl;
return 0;
}
leaf_1415