結果
問題 |
No.8043 yukicoderへようこそ!
|
ユーザー |
![]() |
提出日時 | 2019-04-01 23:34:27 |
言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 549 bytes |
コンパイル時間 | 465 ms |
コンパイル使用メモリ | 55,512 KB |
実行使用メモリ | 6,820 KB |
最終ジャッジ日時 | 2024-11-27 04:50:09 |
合計ジャッジ時間 | 859 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 3 WA * 3 |
ソースコード
#include <iostream> #include <string> #include <stdlib.h> #define llint long long 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; if(s[0] > '0' && s[0] <= '9'){ llint sum = b + atoi(s.c_str()); for(int i = 0; i < a-2; i++) cin >> b, sum += b; cout << sum << endl; return 0; } cout << a+b << " " << s << endl; return 0; } cout << a*(a+1)/2 << endl; return 0; } cout << "Hello World!" << endl; return 0; }