結果
| 問題 |
No.276 連続する整数の和(1)
|
| コンテスト | |
| ユーザー |
Rp7rf
|
| 提出日時 | 2015-09-04 22:39:53 |
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 181 bytes |
| コンパイル時間 | 444 ms |
| コンパイル使用メモリ | 55,388 KB |
| 実行使用メモリ | 6,944 KB |
| 最終ジャッジ日時 | 2024-07-19 01:09:36 |
| 合計ジャッジ時間 | 2,166 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 4 WA * 6 |
ソースコード
#include<iostream>
using namespace std;
int main(void){
int n;
cin>>n;
unsigned long long sum = 0;
for(int i = 1 ; i <= n ; i ++){
sum += i;
}
cout<<sum%n<<endl;
}
Rp7rf