結果
問題 | No.2322 MMA文字列 |
ユーザー |
![]() |
提出日時 | 2025-03-13 17:07:02 |
言語 | C (gcc 13.3.0) |
結果 |
AC
|
実行時間 | 1 ms / 2,000 ms |
コード長 | 154 bytes |
コンパイル時間 | 628 ms |
コンパイル使用メモリ | 24,320 KB |
実行使用メモリ | 7,324 KB |
最終ジャッジ日時 | 2025-03-13 17:07:05 |
合計ジャッジ時間 | 1,613 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 19 |
コンパイルメッセージ
main.c: In function ‘main’: main.c:5:17: warning: format ‘%s’ expects argument of type ‘char *’, but argument 2 has type ‘char (*)[100]’ [-Wformat=] 5 | scanf("%s",&n); | ~^ ~~ | | | | | char (*)[100] | char * main.c:5:9: warning: ignoring return value of ‘scanf’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 5 | scanf("%s",&n); | ^~~~~~~~~~~~~~
ソースコード
#include <stdio.h> void main(void){ char n[100] = "a"; scanf("%s",&n); if(n[0] == n[1] && n[0] != n[2]){ printf("Yes"); }else{ printf("No"); } }