結果
| 問題 | 
                            No.2174 3 O'clock Easy
                             | 
                    
| ユーザー | 
                             | 
                    
| 提出日時 | 2022-12-31 21:43:26 | 
| 言語 | C  (gcc 13.3.0)  | 
                    
| 結果 | 
                             
                                WA
                                 
                             
                            
                         | 
                    
| 実行時間 | - | 
| コード長 | 223 bytes | 
| コンパイル時間 | 151 ms | 
| コンパイル使用メモリ | 30,208 KB | 
| 実行使用メモリ | 5,248 KB | 
| 最終ジャッジ日時 | 2024-11-26 21:17:13 | 
| 合計ジャッジ時間 | 654 ms | 
| 
                            ジャッジサーバーID (参考情報)  | 
                        judge1 / judge2 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| sample | WA * 3 | 
| other | WA * 9 | 
ソースコード
#include <stdio.h>
#include <math.h>
int main(void) {
    int N;
    int sum = 0;
    scanf("%d", &N);
    for (int i = 0; i < N; i++) {
        sum += pow(i, 3 - i % 3);
    }
    printf("%d\n", sum);
    
    return 0;
}