結果
| 問題 |
No.207 世界のなんとか
|
| コンテスト | |
| ユーザー |
bluemegane
|
| 提出日時 | 2018-09-26 10:00:43 |
| 言語 | C#(csc) (csc 3.9.0) |
| 結果 |
WA
(最新)
AC
(最初)
|
| 実行時間 | - |
| コード長 | 622 bytes |
| コンパイル時間 | 873 ms |
| コンパイル使用メモリ | 109,864 KB |
| 実行使用メモリ | 28,440 KB |
| 最終ジャッジ日時 | 2024-10-09 12:43:07 |
| 合計ジャッジ時間 | 2,158 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 1 WA * 18 |
コンパイルメッセージ
Microsoft (R) Visual C# Compiler version 3.9.0-6.21124.20 (db94f4cc) Copyright (C) Microsoft Corporation. All rights reserved.
ソースコード
using System.Text;
using System;
using System.IO;
public class Hello
{
public static void Main()
{
string[] line = Console.ReadLine().Trim().Split(' ');
var a = int.Parse(line[0]);
var b = int.Parse(line[1]);
var sb = new StringBuilder();
for (int i = a; i <= b; i++)
if (i % 3 == 0 | i.ToString().Contains("3"))
sb.Append(string.Format("{0}\n", i.ToString()));
var sw = new StreamWriter(Console.OpenStandardOutput()) { AutoFlush = false };
Console.SetOut(sw);
Console.WriteLine(sb);
Console.Out.Flush();
}
}
bluemegane