結果
| 問題 |
No.427 テレビ
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2018-02-10 23:29:21 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 314 bytes |
| コンパイル時間 | 609 ms |
| コンパイル使用メモリ | 73,264 KB |
| 実行使用メモリ | 6,824 KB |
| 最終ジャッジ日時 | 2024-11-06 16:28:03 |
| 合計ジャッジ時間 | 1,155 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 1 WA * 1 |
| other | AC * 3 WA * 5 |
コンパイルメッセージ
main.cpp: In function 'int main()':
main.cpp:15:9: warning: 'w' is used uninitialized [-Wuninitialized]
15 | if(h/w==0.75)
| ~^~
main.cpp:12:15: note: 'w' was declared here
12 | double h, w;
| ^
ソースコード
#include <iostream>
#include <stdio.h>
#include <algorithm>
#include <math.h>
#include <utility>
#include <vector>
using namespace std;
int main(void)
{
double h, w;
cin >> h, w;
if(h/w==0.75)
cout <<"YOKO" << endl;
else
cout << "TATE" << endl;
return 0;
}