結果
| 問題 |
No.427 テレビ
|
| コンテスト | |
| ユーザー |
yukiteru
|
| 提出日時 | 2017-10-21 21:57:34 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 495 bytes |
| コンパイル時間 | 790 ms |
| コンパイル使用メモリ | 76,644 KB |
| 実行使用メモリ | 5,248 KB |
| 最終ジャッジ日時 | 2024-11-21 12:39:10 |
| 合計ジャッジ時間 | 1,279 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 1 WA * 1 |
| other | AC * 3 WA * 5 |
コンパイルメッセージ
main.cpp: In function 'int main()':
main.cpp:24:13: warning: 'h' is used uninitialized [-Wuninitialized]
24 | if(h/4==w/3){
| ~^~
main.cpp:23:13: note: 'h' was declared here
23 | int h, w;
| ^
main.cpp:24:18: warning: 'w' is used uninitialized [-Wuninitialized]
24 | if(h/4==w/3){
| ~^~
main.cpp:23:16: note: 'w' was declared here
23 | int h, w;
| ^
ソースコード
#include<iostream>
#include<string>
#include<string.h>
#include<algorithm>
#include<stdio.h>
#include<cmath>
#include<vector>
#include<utility>
#include<stack>
#include<queue>
#include<list>
#include<bitset>
#define FOR(i, a, b) for(int i=(a);i<=(b);i++)
#define RFOR(i, a, b) for(int i=(a);i>=(b);i--)
#define MOD 1000000007
#define INF 1000000000
using namespace std;
int main(void) {
int h, w;
if(h/4==w/3){
cout << "TATE" << endl;
}
else {
cout << "YOKO" << endl;
}
return 0;
}
yukiteru