Submission #5880977
Source Code Expand
using System; using System.Linq; public class Program { public static void Main() { var cnt = 0; for (int i = 1; i <= 100; i++) { if (i % 3 == 0 || i % 5 == 0) continue; cnt += i; } Console.WriteLine(cnt); } } static class ReadLib { public static long ReadAsLong() { return long.Parse(Console.ReadLine()); } public static int ReadAsInt() { return int.Parse(Console.ReadLine()); } public static int[] ReadAsIntArray() { return Console.ReadLine().Split(' ').Select(s => int.Parse(s)).ToArray(); } }
Submission Info
Submission Time | |
---|---|
Task | A - 天下一プログラマーゲーム |
User | usagisagi |
Language | C# (Mono 4.6.2.0) |
Score | 100 |
Code Size | 661 Byte |
Status | AC |
Exec Time | 20 ms |
Memory | 11092 KB |
Judge Result
Set Name | All | ||
---|---|---|---|
Score / Max Score | 100 / 100 | ||
Status |
|
Set Name | Test Cases |
---|---|
All | no-input |
Case Name | Status | Exec Time | Memory |
---|---|---|---|
no-input | AC | 20 ms | 11092 KB |