Submission #19189145


Source Code Expand

Copy
#include <iostream>
#define rep(i, n) for (int i = 0; i < (n); i++)
using namespace std;

int main(void) {
  ios::sync_with_stdio(false);
  int N = 100;
  int answer = 0;
  for(int i = 1; i <= N; ++i) {
    if(i % 3 && i % 5)
      answer += i;
  }
  cout << answer << endl;
  return 0;
}

Submission Info

Submission Time
Task A - 天下一プログラマーゲーム
User ysfk
Language C++ (GCC 9.2.1)
Score 100
Code Size 302 Byte
Status AC
Exec Time 9 ms
Memory 3536 KB

Judge Result

Set Name All
Score / Max Score 100 / 100
Status
AC × 1
Set Name Test Cases
All no-input
Case Name Status Exec Time Memory
no-input AC 9 ms 3536 KB