結果
| 問題 |
No.1205 Eye Drops
|
| コンテスト | |
| ユーザー |
No
|
| 提出日時 | 2020-10-21 16:17:24 |
| 言語 | C#(csc) (csc 3.9.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 772 bytes |
| コンパイル時間 | 889 ms |
| コンパイル使用メモリ | 111,832 KB |
| 実行使用メモリ | 26,140 KB |
| 最終ジャッジ日時 | 2024-07-21 08:55:37 |
| 合計ジャッジ時間 | 3,812 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 35 WA * 1 RE * 1 |
コンパイルメッセージ
Microsoft (R) Visual C# Compiler version 3.9.0-6.21124.20 (db94f4cc) Copyright (C) Microsoft Corporation. All rights reserved.
ソースコード
using System;
namespace a
{
class a
{
static void Main(string[] args)
{
var ss = Console.ReadLine().Split();
var np = 0;
var nt = 0;
var m = int.Parse(ss[1]);
var f = true;
for (int i = 0; i < m; i++)
{
ss = Console.ReadLine().Split();
var t = int.Parse(ss[0]);
var p = int.Parse(ss[1]);
if(t - nt < p - np)
{
f = false;
break;
}
else
{
nt = t;
np = p;
}
}
Console.WriteLine("{0}",f ? "Yes":"No");
}
}
}
No