結果
| 問題 |
No.138 化石のバージョン
|
| コンテスト | |
| ユーザー |
Drafear
|
| 提出日時 | 2016-01-18 17:41:41 |
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 5,000 ms |
| コード長 | 283 bytes |
| コンパイル時間 | 1,506 ms |
| コンパイル使用メモリ | 160,220 KB |
| 実行使用メモリ | 5,248 KB |
| 最終ジャッジ日時 | 2024-12-29 13:46:15 |
| 合計ジャッジ時間 | 2,477 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 33 |
コンパイルメッセージ
main.cpp: In function ‘std::tuple<int, int, int> input()’:
main.cpp:6:27: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
6 | int a, b, c; scanf("%d.%d.%d", &a, &b, &c);
| ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~
ソースコード
#include <bits/stdc++.h>
using namespace std;
tuple<int, int, int> input() {
int a, b, c; scanf("%d.%d.%d", &a, &b, &c);
return make_tuple(a, b, c);
}
int main() {
tuple<int, int, int> a = input(), b = input();
if (b <= a) cout << "YES" << endl;
else cout << "NO" << endl;
}
Drafear