結果
問題 |
No.8043 yukicoderへようこそ!
|
ユーザー |
![]() |
提出日時 | 2019-04-01 22:26:09 |
言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 272 bytes |
コンパイル時間 | 518 ms |
コンパイル使用メモリ | 55,340 KB |
実行使用メモリ | 6,824 KB |
最終ジャッジ日時 | 2024-11-27 03:22:37 |
合計ジャッジ時間 | 941 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 2 WA * 4 |
ソースコード
#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 n = atoi(s.c_str()); cout << n*(n+1)/2 << endl; return 0; } cout << "Hello World!" << endl; return 0; }