結果
| 問題 |
No.441 和か積
|
| ユーザー |
ndifix
|
| 提出日時 | 2016-12-07 17:06:37 |
| 言語 | C90 (gcc 12.3.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 224 bytes |
| コンパイル時間 | 1,215 ms |
| コンパイル使用メモリ | 19,712 KB |
| 実行使用メモリ | 6,820 KB |
| 最終ジャッジ日時 | 2024-11-28 03:24:54 |
| 合計ジャッジ時間 | 1,820 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 1 WA * 2 |
| other | AC * 12 WA * 18 |
コンパイルメッセージ
main.c: In function ‘main’:
main.c:6:13: warning: conversion lacks type at end of format [-Wformat=]
6 | scanf("%l",&a);
| ^
main.c:6:11: warning: too many arguments for format [-Wformat-extra-args]
6 | scanf("%l",&a);
| ^~~~
main.c:7:13: warning: conversion lacks type at end of format [-Wformat=]
7 | scanf("%l",&b);
| ^
main.c:7:11: warning: too many arguments for format [-Wformat-extra-args]
7 | scanf("%l",&b);
| ^~~~
main.c:6:5: warning: ignoring return value of ‘scanf’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
6 | scanf("%l",&a);
| ^~~~~~~~~~~~~~
main.c:7:5: warning: ignoring return value of ‘scanf’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
7 | scanf("%l",&b);
| ^~~~~~~~~~~~~~
ソースコード
#include <stdio.h>
int main(){
long long a, b;
scanf("%l",&a);
scanf("%l",&b);
if(a==2 && b==2){ printf("E"); }
else if(a<2 || b<2){ printf("S"); }
else{ printf("P"); }
return 0;
}
ndifix